java.lang.Object
de.grogra.xl.util.Operators
-
Method Summary
Modifier and TypeMethodDescriptionstatic Arraystatic Arraystatic Arraystatic Arraystatic Arraystatic Arraystatic Arraystatic Arraystatic Arraystatic longstatic longstatic longstatic longstatic longstatic longstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic booleanstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic Randomstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidselectRandomly(Aggregate a, boolean value) static voidselectRandomly(Aggregate a, boolean value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, byte value) static voidselectRandomly(Aggregate a, byte value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, char value) static voidselectRandomly(Aggregate a, char value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, double value) static voidselectRandomly(Aggregate a, double value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, float value) static voidselectRandomly(Aggregate a, float value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, int value) static voidselectRandomly(Aggregate a, int value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, long value) static voidselectRandomly(Aggregate a, long value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, short value) static voidselectRandomly(Aggregate a, short value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectRandomly(Aggregate a, Object value) static voidselectRandomly(Aggregate a, Object value, double prob) This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen.static voidselectWhere(Aggregate a, boolean value, boolean sel) static voidselectWhere(Aggregate a, byte value, boolean sel) static voidselectWhere(Aggregate a, char value, boolean sel) static voidselectWhere(Aggregate a, double value, boolean sel) static voidselectWhere(Aggregate a, float value, boolean sel) static voidselectWhere(Aggregate a, int value, boolean sel) static voidselectWhere(Aggregate a, long value, boolean sel) static voidselectWhere(Aggregate a, short value, boolean sel) static voidselectWhere(Aggregate a, Object value, boolean sel) static voidselectWhereMax(Aggregate a, boolean value, double n) static voidselectWhereMax(Aggregate a, boolean value, long n) static voidselectWhereMax(Aggregate a, byte value, double n) static voidselectWhereMax(Aggregate a, byte value, long n) static voidselectWhereMax(Aggregate a, char value, double n) static voidselectWhereMax(Aggregate a, char value, long n) static voidselectWhereMax(Aggregate a, double value, double n) static voidselectWhereMax(Aggregate a, double value, long n) static voidselectWhereMax(Aggregate a, float value, double n) static voidselectWhereMax(Aggregate a, float value, long n) static voidselectWhereMax(Aggregate a, int value, double n) static voidselectWhereMax(Aggregate a, int value, long n) static voidselectWhereMax(Aggregate a, long value, double n) static voidselectWhereMax(Aggregate a, long value, long n) static voidselectWhereMax(Aggregate a, short value, double n) static voidselectWhereMax(Aggregate a, short value, long n) static voidselectWhereMax(Aggregate a, Object value, double n) static voidselectWhereMax(Aggregate a, Object value, long n) static voidselectWhereMin(Aggregate a, boolean value, double n) static voidselectWhereMin(Aggregate a, boolean value, long n) static voidselectWhereMin(Aggregate a, byte value, double n) static voidselectWhereMin(Aggregate a, byte value, long n) static voidselectWhereMin(Aggregate a, char value, double n) static voidselectWhereMin(Aggregate a, char value, long n) static voidselectWhereMin(Aggregate a, double value, double n) static voidselectWhereMin(Aggregate a, double value, long n) static voidselectWhereMin(Aggregate a, float value, double n) static voidselectWhereMin(Aggregate a, float value, long n) static voidselectWhereMin(Aggregate a, int value, double n) static voidselectWhereMin(Aggregate a, int value, long n) static voidselectWhereMin(Aggregate a, long value, double n) static voidselectWhereMin(Aggregate a, long value, long n) static voidselectWhereMin(Aggregate a, short value, double n) static voidselectWhereMin(Aggregate a, short value, long n) static voidselectWhereMin(Aggregate a, Object value, double n) static voidselectWhereMin(Aggregate a, Object value, long n) static voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic voidstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic Stringstatic voidstatic voidstatic voidstatic void
-
Method Details
-
getRandomGenerator
-
forall
-
exist
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
count
-
empty
-
string
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
array
-
first
-
first
-
slice
-
last
-
selectWhere
-
selectRandomly
-
selectRandomly
This aggregate method selects one of the providedvalues, where eachvaluehas a relative probabilityprobof being chosen. Relative probability means that theprobvalues do not have to be normalized so that their sum is 1.- Parameters:
a- aggregate instance (provided by the XL compiler)value- a value of the sequence of valuesprob- relative probability ofvalue
-
selectWhereMin
-
selectWhereMin
-
selectWhereMax
-
selectWhereMax
-
min
-
max
-
min
-
max
-
min
-
max
-
min
-
max
-
min
-
max
-
min
-
max
-
sum
-
mean
-
prod
-
sum
-
mean
-
prod
-
sum
-
mean
-
prod
-
sum
-
mean
-
prod
-