J phrases is good source too.
https://www.jsoftware.com/docs/help807/phrases/rank_class.htm
On Fri, 17 Mar 2023 at 12:35 AM Devon McCormick wrote:
> This is good to know - thanks!
>
> On Wed, Mar 15, 2023 at 8:40 PM Ric Sherlock wrote:
>
> > As an adverb we can get the ascending and descendin
This is good to know - thanks!
On Wed, Mar 15, 2023 at 8:40 PM Ric Sherlock wrote:
> As an adverb we can get the ascending and descending by applying either /:
> or \:
>
> open 'stats/base/univariate' NB. in JQt will open the script
>
> rankCompete=: 1 :'u~ i. ]'
>
> On Thu, Mar 16, 2023 at 1:30
As an adverb we can get the ascending and descending by applying either /:
or \:
open 'stats/base/univariate' NB. in JQt will open the script
rankCompete=: 1 :'u~ i. ]'
On Thu, Mar 16, 2023 at 1:30 PM Ric Sherlock wrote:
> There are number of adverbs in the stats/base script for getting differ
There are number of adverbs in the stats/base script for getting different
types of rankings
NB.*rankOrdinal a ordinal ranking ("0 1 2 3") of array y
NB.*rankCompete a standard competition ranking ("0 0 2 3") of array y
NB.*rankDense a dense ranking ("0 0 1 2") of array y
NB.*rankFractional a f
These are both way better than what I came up with. Thanks!
On Wed, Mar 15, 2023 at 5:07 PM 'robert therriault' via Programming <
programm...@jsoftware.com> wrote:
> Nicely done Elijah!
>
> It has a pretty solution in tacit as well
>
> vec=. 49 275 93 275 92 99 91 49
>t=. i.~ \:~
>t
Nicely done Elijah!
It has a pretty solution in tacit as well
vec=. 49 275 93 275 92 99 91 49
t=. i.~ \:~
t vec
6 0 3 0 4 2 5 6
Cheers, bob
> On Mar 15, 2023, at 13:59, Elijah Stone wrote:
>
> One thing that comes to mind is (\:~vec) i.vec.
>
> On Wed, 15 Mar 2023, Devon McCormick
One thing that comes to mind is (\:~vec) i.vec.
On Wed, 15 Mar 2023, Devon McCormick wrote:
Hi, has anyone looked into how to generate a rank numbering where duplicate
values get duplicate order numbers?
For example, when we rank this vector descending,
\:vec=. 49 275 93 275 92 99 91 49
1 3
Hi, has anyone looked into how to generate a rank numbering where duplicate
values get duplicate order numbers?
For example, when we rank this vector descending,
\:vec=. 49 275 93 275 92 99 91 49
1 3 5 2 4 6 0 7
we see that 1 3{vec and 0 7{vec are the same so I would like to end up with
a rank