Interface ExponentialSmoothing
- All Superinterfaces:
org.eclipse.emf.cdo.CDOObject,org.eclipse.emf.cdo.common.id.CDOWithID,EObject,de.uka.ipd.sdq.identifier.Identifier,Mapper,Notifier
- All Known Implementing Classes:
ExponentialSmoothingImpl,ExponentialSmoothingImplGen
A representation of the model object 'Exponential Smoothing'.
A special, stateful
That is, starting with an initial smoothed value
Mapper implementation which performs a (first order) exponential smoothing of a sequence of measurements.That is, starting with an initial smoothed value
x0 of zero, upon reception of a new measurement yk computes the weighted arithmetic mean xk=αyk+(1-α)xk-1 with fixed smoothing factor α in [0,1].
The following features are supported:
- See Also:
- Generated class or method.
- EMF model class or method.
- annotation="http://www.eclipse.org/emf/2002/Ecore constraints='alpha mapping'" annotation="http://www.eclipse.org/emf/2002/Ecore/OCL alpha='self.smoothingFactor >= 0 and self.smoothingFactor <=1' mapping='self.map.outputMetricDescription.id = self.map.measurementSpecification.metricDescription.id'"
-
Method Summary
Modifier and TypeMethodDescriptionUnaryOperator<org.palladiosimulator.measurementframework.MeasuringValue>Gets the mapping function which implements the (first order) exponential smoothing.javax.measure.Measure<Double,javax.measure.quantity.Quantity> Returns the value of the 'Smoothed Value' attribute.doubleReturns the value of the 'Smoothing Factor' attribute.booleanisMetricNumericalBaseMetric(DiagnosticChain chain, Map<?, ?> context) Validator method to assert that the metric description of the associated measurement specification is aNumericalBaseMetricDescription.voidsetSmoothedValue(javax.measure.Measure<Double, javax.measure.quantity.Quantity> value) Sets the value of the 'Smoothed Value' attribute.voidsetSmoothingFactor(double value) Sets the value of the 'Smoothing Factor' attribute.Methods inherited from interface org.eclipse.emf.cdo.CDOObject
cdoConflict, cdoDirectResource, cdoHistory, cdoID, cdoInvalid, cdoLockState, cdoPermission, cdoPrefetch, cdoReadLock, cdoReload, cdoResource, cdoRevision, cdoRevision, cdoState, cdoView, cdoWriteLock, cdoWriteOptionMethods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnsetMethods inherited from interface de.uka.ipd.sdq.identifier.Identifier
getId, setIdMethods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getSmoothingFactor
double getSmoothingFactor()Returns the value of the 'Smoothing Factor' attribute. The default value is"0.5".- Returns:
- the value of the 'Smoothing Factor' attribute.
- See Also:
- Generated class or method.
- EMF model class or method.
- default="0.5" required="true"
-
setSmoothingFactor
void setSmoothingFactor(double value) Sets the value of the 'Smoothing Factor' attribute.- Parameters:
value- the new value of the 'Smoothing Factor' attribute.- See Also:
- Generated class or method.
-
getSmoothedValue
javax.measure.Measure<Double,javax.measure.quantity.Quantity> getSmoothedValue()Returns the value of the 'Smoothed Value' attribute. The default value is"".- Returns:
- the value of the 'Smoothed Value' attribute.
- See Also:
- Generated class or method.
- EMF model class or method.
- default="" dataType="org.palladiosimulator.edp2.models.ExperimentData.EJSMeasure<org.eclipse.emf.ecore.EDoubleObject, org.palladiosimulator.metricspec.IJSQuantity>"
-
setSmoothedValue
Sets the value of the 'Smoothed Value' attribute.- Parameters:
value- the new value of the 'Smoothed Value' attribute.- See Also:
- Generated class or method.
-
getMappingFunction
UnaryOperator<org.palladiosimulator.measurementframework.MeasuringValue> getMappingFunction()Gets the mapping function which implements the (first order) exponential smoothing.- Specified by:
getMappingFunctionin interfaceMapper- Generated class or method.
- EMF model class or method.
- kind="operation" dataType="org.palladiosimulator.monitorrepository.map.util.Func<org.palladiosimulator.monitorrepository.map.util.MeasuringValue>"
-
isMetricNumericalBaseMetric
Validator method to assert that the metric description of the associated measurement specification is aNumericalBaseMetricDescription.- Generated class or method.
- EMF model class or method.
-