Weighted Statistic
Collects a basic weighted statistical summary. If the observation or the weight is infinite or NaN, then the observation is not recorded and the number of missing observations is incremented. If the observed weight is negative or 0.0, then the observation is not recorded and the number of missing observations is incremented.
Author
rossetti
Properties
The header string for the CVS representation
When a data point having the value of (Double.NaN, Double.POSITIVE_INFINITY, Double.NEGATIVE_INFINITY) are presented it is excluded from the summary statistics and the number of missing points is noted. If the weight is infinite or less than or equal to zero, then the data point should not be recorded. This method reports the number of missing points that occurred during the collection.
Returns an array with the statistics defined by index = statistic
s0 = "Count"; s1 = "Average"; s2 = "Minimum"; s3 = "Maximum"; s4 = "Weighted Sum"; s5 = "Sum of Weights"; s6 = "Weighted sum of squares"; s7 = "Last Value"; s8 = "Last Weight"; s9 = "Unweighted Sum"; s10 = "Unweighted Average";
Gets the sum of the observed weights.
Gets the weighted average of the collected observations.
Gets the weighted sum of observations observed.
Gets the weighted sum of squares for observations observed.
Functions
Allows the adding (attaching) of an observer to the observable
Collects on the boolean value true = 1.0, false = 0.0
Collects on the values in the supplied array.
Collect on the double value return by the function
Collects on the Int value
Collects on the Long value
Collects on all the values in the supplied collection.
Collects on the values returned by the supplied GetValueIfc
Collect on the supplied value
Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.
Returns how many observers are currently attached to the observable
Detaches all the observers from the observable
Allows the deletion (removing) of an observer from the observable
Creates an instance of Statistic that is a copy of this Statistic All internal state is the same except for the id of the returned Statistic
Returns true if the observer is already attached
Fills up the supplied array with the statistics defined by index = statistic