DeviationSquared
Model ElementDeviationSquared
Class Name
DeviationSquared
Description
where:
is the value of a ValueAtTime response.
is its desired value.
is the error in the function.
The function is computed by another response.
Attribute Summary
Name | Property | Modifiable by Command? | Designable |
---|---|---|---|
label | Str () | ||
measuredValue | Response () | Yes | |
targetValue | Double () | ||
scale | Double (1) |
Usage
DeviationSquared of a particular response from a target value
DeviationSquared (measuredValue=expressionString, targetValue= double, optional_attributes)
Attributes
- measuredValue
- A response of type ValueAtTime.
- targetValue
- Double ()
- label
- String
- scale
- Double
Example:
# Deviation of the signal DX(22,11,33) at time=2 seconds from a desired value of 4.0
# Compute the ValuaAtTime response
f = ValueAtTime (label="DX@2", atTime=2, delta=0.1)
# Normalized deviation of the signal from 4
s = DeviationSquared (label="Error_in_DX@2", measuredValue=f, targetValue=4)
Comments
- See Properties for an explanation about what properties are, why they are used, and how you can extend these.