Ask Experts Questions for FREE Help !
Ask
    moh533's Avatar
    moh533 Posts: 5, Reputation: 1
    New Member
     
    #1

    Sep 14, 2017, 09:12 PM
    Computational Topology - Vietoris-Rips Complex
    Write code for the function RipsComplex(P,d).

    - Inputs:

    - P : a set of points P belonging to R2 given as a k x 2 numpy matrix
    - d : a diameter d >= 0

    - Output:

    - The boundary matrix representing the 3-skeleton of VR(P, d).


    Note
    : I have little to no programming skills, so I'm just learning. Please bear with me. Also, this question is very similar to the previous question I posted. However, a graph does not need to be generated.. rather a 3-skeleton boundary matrix in python.


    Here's my work so far (same as previous question):


    import numpy as np
    import networkx as nx
    P = np.random.random((15,2)) #each point is row in matrix
    from scipy.spatial import distance-matrix
    plt.matshow(distance-matrix(P,P))
    row,col = np.where(D<???) #must find point with distance <???... not sure what distance to use
    print(row[:10],'\n',col[:10]) - slicing matrix


    #Next, I must remove duplicates and any point where col>row.. by slicing the matrix with specific parameters..


    Any help is greatly appreciated. Thanks!
    smoothy's Avatar
    smoothy Posts: 25,492, Reputation: 2853
    Uber Member
     
    #2

    Sep 14, 2017, 09:37 PM
    Homework rules on this site REQUIRE you provide your works AND what you think the answer is. You forgot to cut and paste those.
    moh533's Avatar
    moh533 Posts: 5, Reputation: 1
    New Member
     
    #3

    Sep 15, 2017, 07:00 AM
    Edited

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Computational Topology - Vietoris-Rips Complex Graph [ 2 Answers ]

Write code in Python for the function RipsGraph(P,d) as follows. - Inputs: - P : a set of points P belonging to R2 given as a k x 2 numpy matrix - d : a diameter d >= 0 -Output:

Computational Topology - Order Complex [ 1 Answers ]

Please delete this post

Carrier in computational seismology [ 1 Answers ]

Hi Wishing u a very very good evening. I have completed Master of computer Application.I have completed Master of Computational seismology I am interested to know how computer programming will be help be full in the field of seismology. What are the jobs for computational seismolgy people. ...

Computational Engineering [ 1 Answers ]

I am asking for more information about Computational Engineering. What is it all about ( career opportunities, working conditions, demand, backround to be a good computational engineer, etc )


View more questions Search