Functions:
float avg(NodeSet)
float avg(TupleSet, col)
Examples:
A { age = 10 }
B { age = 10 }
C { age = 30 }
D { age = 32 }
E { age = 32 }
>> avg(rng @age)
24.0
>> avg(@age, 1)
22.8
beginLine and beginColumn describe the position of the first character
of this token; endLine and endColumn describe the position of the
last character of this token.
beginLine -
Variable in class ca.uwaterloo.cs.ql.interp.Token
beginLine and beginColumn describe the position of the first character
of this token; endLine and endColumn describe the position of the
last character of this token.
endColumn -
Variable in class ca.uwaterloo.cs.ql.interp.Token
beginLine and beginColumn describe the position of the first character
of this token; endLine and endColumn describe the position of the
last character of this token.
endLine -
Variable in class ca.uwaterloo.cs.ql.interp.Token
beginLine and beginColumn describe the position of the first character
of this token; endLine and endColumn describe the position of the
last character of this token.
Functions:
set median(set)
tset median(tset, col)
Examples:
A { age = 10 }
B { age = 10 }
C { age = 30 }
D { age = 32 }
E { age = 32 }
>> median(rng @age)
30
>> median(@age, &1)
C 30
Functions:
float sum(NodeSet)
float sum(TupleSet, col)
Examples:
A { age = 10 }
B { age = 10 }
C { age = 30 }
D { age = 32 }
E { age = 32 }
>> sum(rng @age)
72.0
>> sum(@age, 1)
114.0
Functions:
set unbasket(set);
eset unbasket(eset);
set unbasket(string);
Examples:
>> b = basket({1, 2, "abc"});
>> u = unbasket(b);
>> b
(1 2 abc)
>> u
1
2
abc
>>