Class MedianAggregator
java.lang.Object
org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator
org.palladiosimulator.monitorrepository.statisticalcharacterization.MedianAggregator
StatisticalCharacterizationAggregator corresponding to the Median model class
which computes the median of a sequence of measurements (discrete case) or a function with
respect to an interval (continuous case).-
Constructor Summary
ConstructorsConstructorDescriptionMedianAggregator(org.palladiosimulator.metricspec.NumericalBaseMetricDescription expectedWindowMetric) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.measure.Measure<Double,javax.measure.quantity.Quantity> calculateStatisticalCharacterizationContinuous(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData) Method to be implemented by each subclass to calculate the statistical characterization of a sequence of measurements with a continuous scope of validity (i.e., to aggregate them).
This method is invoked withinStatisticalCharacterizationAggregator.aggregateData(Iterable, Amount, Amount, Optional).protected javax.measure.Measure<Double,javax.measure.quantity.Quantity> calculateStatisticalCharaterizationDiscrete(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData) Method to be implemented by each subclass to calculate the statistical characterization of a sequence of measurements with a discrete scope of validity (i.e., to aggregate them).
This method is invoked withinStatisticalCharacterizationAggregator.aggregateData(Iterable, Amount, Amount, Optional).Methods inherited from class org.palladiosimulator.monitorrepository.statisticalcharacterization.StatisticalCharacterizationAggregator
aggregateData, getDataDefaultUnit, getDataMetric, getIntervalLength, obtainCurrentMeasurementValidityLength, obtainDataFromMeasurement, obtainDataValueFromMeasurement
-
Constructor Details
-
MedianAggregator
public MedianAggregator(org.palladiosimulator.metricspec.NumericalBaseMetricDescription expectedWindowMetric)
-
-
Method Details
-
calculateStatisticalCharaterizationDiscrete
protected javax.measure.Measure<Double,javax.measure.quantity.Quantity> calculateStatisticalCharaterizationDiscrete(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData) Description copied from class:StatisticalCharacterizationAggregatorMethod to be implemented by each subclass to calculate the statistical characterization of a sequence of measurements with a discrete scope of validity (i.e., to aggregate them).
This method is invoked withinStatisticalCharacterizationAggregator.aggregateData(Iterable, Amount, Amount, Optional).- Specified by:
calculateStatisticalCharaterizationDiscretein classStatisticalCharacterizationAggregator- Parameters:
windowData- The sequence of data/measurements to be aggregated, expressed as anIterableofMeasuringValues.- Returns:
- A
Measurerepresenting the result of the aggregation. - See Also:
-
StatisticalCharacterizationAggregator.getDataMetric()BaseMetricDescription.getScopeOfValidity()
-
calculateStatisticalCharacterizationContinuous
protected javax.measure.Measure<Double,javax.measure.quantity.Quantity> calculateStatisticalCharacterizationContinuous(Iterable<org.palladiosimulator.measurementframework.MeasuringValue> windowData) Description copied from class:StatisticalCharacterizationAggregatorMethod to be implemented by each subclass to calculate the statistical characterization of a sequence of measurements with a continuous scope of validity (i.e., to aggregate them).
This method is invoked withinStatisticalCharacterizationAggregator.aggregateData(Iterable, Amount, Amount, Optional).- Specified by:
calculateStatisticalCharacterizationContinuousin classStatisticalCharacterizationAggregator- Parameters:
windowData- The sequence of data/measurements to be aggregated, expressed as anIterableofMeasuringValues.- Returns:
- A
Measurerepresenting the result of the aggregation. - See Also:
-
StatisticalCharacterizationAggregator.getDataMetric()BaseMetricDescription.getScopeOfValidity()
-