Package pulse.tasks.processing
Class AverageResult
- java.lang.Object
-
- pulse.util.UpwardsNavigable
-
- pulse.tasks.processing.AbstractResult
-
- pulse.tasks.processing.AverageResult
-
- All Implemented Interfaces:
Serializable,Descriptive
public class AverageResult extends AbstractResult
AnAverageResultis obtained by averaging a list ofAbstractResults and calculating the associated errors of averaging.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intSIGNIFICANT_FIGURES
-
Constructor Summary
Constructors Constructor Description AverageResult(List<AbstractResult> res, ResultFormat resultFormat)This will create anAverageResultbased on theAbstractResultinres.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AbstractResult>getIndividualResults()This will analyse the list ofAbstractResults used for calculation of the mean and find all associated individual results.-
Methods inherited from class pulse.tasks.processing.AbstractResult
addProperty, equals, filterProperties, filterProperties, getFormat, getProperties, getProperty, setFormat, toString
-
Methods inherited from class pulse.util.UpwardsNavigable
addHierarchyListener, describe, getHierarchyListeners, getParent, identify, initListeners, removeHierarchyListener, removeHierarchyListeners, setParent, specificAncestor, tellParent
-
-
-
-
Field Detail
-
SIGNIFICANT_FIGURES
public static final int SIGNIFICANT_FIGURES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AverageResult
public AverageResult(List<AbstractResult> res, ResultFormat resultFormat)
This will create anAverageResultbased on theAbstractResultinres.It will also use the
resultFormat. A method will be invoked to: (a) calculate the mean values of the list ofNumericPropertyaccording to theresultFormat; (b) calculate the statistical error; (c) create aBigDecimalrepresentation of the values and the errors, so that only 2 significant figures are left for consistency between thevalueand theerror.- Parameters:
res- a list ofAbstractResults that are going to be averaged (not necessarily instances ofResult).resultFormat- theResultFormat, which will be used for thisAveragedResult.
-
-
Method Detail
-
getIndividualResults
public List<AbstractResult> getIndividualResults()
This will analyse the list ofAbstractResults used for calculation of the mean and find all associated individual results.If it is established that some instances of
AverageResultwere used in the calculation, this will invoke this method recursively to get a full list ofAbstractResults that are notAverageResults- Returns:
- a list of
AbstractResults that are guaranteed not to beAveragedResults.
-
-