Two-point correlation function

112 views
Skip to first unread message

Khary Richardson

unread,
Sep 30, 2015, 5:52:47 PM9/30/15
to astroML-general
Hello,

 I have what maybe a trivial question. Can one use the astroML two-point correlation function for data that is in three dimensions?  The reason I ask is that the sample codes all comprise of 2D arrays. 

Jake Vanderplas

unread,
Sep 30, 2015, 6:01:33 PM9/30/15
to Khary Richardson, astroML-general
Hi,
Yes, you can use data of any dimension. For example, the astroML.correlation.two_point() function takes as its first argument a matrix of size [n_samples, n_features]. So, if you have 1000 points in 3 dimensions, you can arrange them in a 1000x3 matrix and pass it to the algorithm,
    Jake

On Wed, Sep 30, 2015 at 2:52 PM, Khary Richardson <surfc...@gmail.com> wrote:
Hello,

 I have what maybe a trivial question. Can one use the astroML two-point correlation function for data that is in three dimensions?  The reason I ask is that the sample codes all comprise of 2D arrays. 

--
You received this message because you are subscribed to the Google Groups "astroML-general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astroml-gener...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Khary Richardson

unread,
Sep 30, 2015, 6:06:58 PM9/30/15
to astroML-general, surfc...@gmail.com
Hi Jake,

   Thank you so much!!

Khary
Message has been deleted

Tom Evslin

unread,
Aug 2, 2017, 7:17:45 PM8/2/17
to astroML-general, surfc...@gmail.com
if objects are in 3-d space with ra, dec, and z, do coordinates have to be converted to some cartesian form in order retrieve the correlation function values for the bins? If so, if unit are comoving Mpc, will bins than be by Mpc of separation?

On Wednesday, September 30, 2015 at 6:01:33 PM UTC-4, Jake Vanderplas wrote:
Reply all
Reply to author
Forward
0 new messages