|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.iu.cnets.klatsch.lang.Value
edu.iu.cnets.klatsch.lang.VList
public class VList
This value represents a list (i.e., a one-dimensional array).
Field Summary | |
---|---|
Value[] |
ls
the values actually being stored |
Constructor Summary | |
---|---|
VList(Value... ls)
|
Method Summary | |
---|---|
(package private) java.util.Comparator<Value> |
getComparator()
Returns a comparator for sorting numeric values, in support of the sort() method. |
(package private) java.util.Comparator<Value> |
getComparator(VClosure proc)
Returns a comparator for sorting numeric value using a user-supplied procedure, in support of the sort(p) method. |
Value |
method_filter(Value... args)
filter(p) : Returns the members of the list for which p is true. |
Value |
method_get(Value... args)
get(n) : Returns element n from the list. |
Value |
method_join(Value... args)
join(ls) : Creates a new list containing the combination of this list and ls. |
Value |
method_len(Value... args)
len() : Returns the length of the list. |
Value |
method_map(Value... args)
map(p) : Returns the list obtained by calling p on each element. |
Value |
method_max_index(Value... args)
max_index : Returns the index of the largest element in the list. |
Value |
method_max(Value... args)
max : Returns the largest element in the list. |
Value |
method_mean(Value... args)
mean : Returns the mean of the values in the list. |
Value |
method_min_index(Value... args)
min_index : Returns the index of the smallest element in the list. |
Value |
method_min(Value... args)
min : Returns the smallest element in the list. |
Value |
method_reduce(Value... args)
reduce(p, acc) : Reduces the list to a single value by repeating acc = p(x, acc) for each x in the list. |
Value |
method_set(Value... args)
set(n, v) : Sets element n to the value v. |
Value |
method_skew(Value... args)
skew : Returns the skew of the values in the list. |
Value |
method_slice(Value... args)
slice(n1, n2) : Returns the slice of elements from ls[n1] to ls[n2], inclusive. |
Value |
method_sort(Value... args)
sort() : Sorts the numeric list in-place and returns it as a value. |
Value |
method_std(Value... args)
std : Returns the standard deviation of the values in the list. |
Value |
method_stream(Value... args)
stream() : Converts the list to a stream. |
Value |
method_sum(Value... args)
sum : Returns the sum of the values of the list. |
java.lang.String |
toJson()
Returns a JSON representation of the list. |
java.lang.String |
toString()
Returns a printed representation of the list. |
Methods inherited from class edu.iu.cnets.klatsch.lang.Value |
---|
require, requireCount, requireType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public Value[] ls
Constructor Detail |
---|
public VList(Value... ls)
Method Detail |
---|
java.util.Comparator<Value> getComparator()
java.util.Comparator<Value> getComparator(VClosure proc)
public java.lang.String toString()
toString
in class Value
public java.lang.String toJson()
toJson
in class Value
public Value method_filter(Value... args) throws EvaluationException
EvaluationException
public Value method_get(Value... args) throws EvaluationException
EvaluationException
public Value method_join(Value... args) throws EvaluationException
EvaluationException
public Value method_len(Value... args) throws EvaluationException
EvaluationException
public Value method_map(Value... args) throws EvaluationException
EvaluationException
public Value method_max(Value... args) throws EvaluationException
EvaluationException
public Value method_max_index(Value... args) throws EvaluationException
EvaluationException
public Value method_mean(Value... args) throws EvaluationException
EvaluationException
public Value method_min(Value... args) throws EvaluationException
EvaluationException
public Value method_min_index(Value... args) throws EvaluationException
EvaluationException
public Value method_reduce(Value... args) throws EvaluationException
EvaluationException
public Value method_set(Value... args) throws EvaluationException
EvaluationException
public Value method_skew(Value... args) throws EvaluationException
EvaluationException
public Value method_slice(Value... args) throws EvaluationException
EvaluationException
public Value method_sort(Value... args) throws EvaluationException
EvaluationException
public Value method_std(Value... args) throws EvaluationException
EvaluationException
public Value method_stream(Value... args) throws EvaluationException
EvaluationException
public Value method_sum(Value... args) throws EvaluationException
EvaluationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |