[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-gsl] gsl ranking of vector elements
From: |
Brian Gough |
Subject: |
Re: [Help-gsl] gsl ranking of vector elements |
Date: |
Fri, 28 Jan 2005 16:25:02 +0000 |
Stefan Bleuler writes:
> The method proposed in the gsl documentation for calculating the ranks
> of vector elements is to use sort and then look at the indices. The
> problem is that the order for equal values is "random" and thus their
> ranks are.
> I would like to assign equal non-integer ranks to equal elements.
> Is there a straight forward way to do it in gsl?
You have to do the desired one-pass transformation of the existing
index output into your float vector.
--
Brian Gough