paultpearson / TDAmapper

(R package) Analyze High-Dimensional Data Using Discrete Morse Theory
Other
74 stars 29 forks source link

Set filter function #2

Closed dpanagop closed 8 years ago

dpanagop commented 8 years ago

Can you please give more details on the filter function. How can someone define a custom filter function?

Thank you.

paultpearson commented 8 years ago

This is not an issue with the code, so it should not have been submitted as an issue on github.

Example 1 has data consisting of 100 points in the plane with x=2cos(0.5(1:100)) and y=sin(1:100). The filter function is a custom filter function given by projection onto the first coordinate: f(x,y) = x. Thus, the 100 filter function values are 2cos(0.5(1:100)).