Post Reply 
Can the name of the MODE function be changed? (Statistics)
10-30-2017, 10:30 PM (This post was last modified: 10-30-2017 11:41 PM by Didier Lachieze.)
Post: #4
RE: Can the name of the MODE function be changed? (Statistics)
Here is how I would do a statistical mode function, I don't know how different from yours it is :
Code:
EXPORT ModeList(L)
BEGIN
 LOCAL l1,l2;
 l1:=UNION(L);
 l2:=MAKELIST(SIZE(INTERSECT(L,l1(I))),I,1,SIZE(l1));
 DIFFERENCE(l1*(l2==MAX(l2)),0);
END;

EDITED for a few simplifications.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Can the name of the MODE function be changed? (Statistics) - Didier Lachieze - 10-30-2017 10:30 PM



User(s) browsing this thread: 1 Guest(s)