| Package | flare.query |
| Class | public class Variance |
| Inheritance | Variance AggregateExpression Expression |
| Method | Defined by | ||
|---|---|---|---|
|
Variance(input:*, type:int = 0)
Creates a new Variance operator.
| Variance | ||
|
aggregate(value:Object):void
Increments the aggregation computation to include the input value.
| Variance | ||
![]() |
Creates a cloned copy of the expression.
| Expression | |
|
eval(o:Object = null):*
Evaluates this expression with the given input object.
| Variance | ||
![]() |
expr(o:*):Expression
[static]
Utility method that maps an input value into an Expression.
| Expression | |
![]() |
getChildAt(idx:int):Expression
Returns the sub-expression at the given index.
| AggregateExpression | |
![]() |
predicate(o:Object):Boolean
Boolean predicate that tests the output of evaluating this
expression.
| Expression | |
|
reset():void
Resets the aggregation computation.
| Variance | ||
![]() |
setChildAt(idx:int, expr:Expression):Boolean
Set the sub-expression at the given index.
| AggregateExpression | |
![]() |
toString():String
Returns a string representation of the expression.
| Expression | |
![]() |
visit(f:Function):Boolean
Sequentially invokes the input function on this expression and all
sub-expressions.
| Expression | |
| Constant | Defined by | ||
|---|---|---|---|
| DEVIATION : int = 1 [static] Flag indicating the standard deviation should be computed.
| Variance | ||
| POPULATION : int = 0 [static] Flag indicating the population variance or deviation.
| Variance | ||
| SAMPLE : int = 2 [static] Flag indicating the sample variance or deviation.
| Variance | ||
| VARIANCE : int = 0 [static] Flag indicating the variance should be computed.
| Variance | ||
| Variance | () | constructor |
public function Variance(input:*, type:int = 0)
Creates a new Variance operator. By default, the population variance
is computed. Use the type flags to change this. For example, the type
argument Variance.SAMPLE | Variance.DEVIATION results in
the sample standard deviation being computed.
input:* — the sub-expression of which to compute variance
|
|
type:int (default = 0) — the type of variance or deviation to compute
|
| aggregate | () | method |
public override function aggregate(value:Object):voidIncrements the aggregation computation to include the input value.
Parametersvalue:Object — a value to include within the aggregation.
|
| eval | () | method |
public override function eval(o:Object = null):*Evaluates this expression with the given input object.
Parameterso:Object (default = null) — the input object to this expression
|
* — the result of evaluating the expression
|
| reset | () | method |
public override function reset():voidResets the aggregation computation.
| DEVIATION | constant |
public static const DEVIATION:int = 1Flag indicating the standard deviation should be computed.
| POPULATION | constant |
public static const POPULATION:int = 0Flag indicating the population variance or deviation.
| SAMPLE | constant |
public static const SAMPLE:int = 2Flag indicating the sample variance or deviation.
| VARIANCE | constant |
public static const VARIANCE:int = 0Flag indicating the variance should be computed.