DeviationSquared

Computes the square of the difference between a function’s value at a certain time and a desired value.

Example

Assume that you wish to determine the design of a suspension such that the camber angle of each wheel is 2° at assembly (T=0). Here is how you would instantiate the camber response at T=0 for each wheel.
>>> # Left wheel (LW) camber response
>>> camberL = ValueAtTime (
       label         = "LW Camber @ T=0",
       measuredValue =  “Camber (22,11)*RTOD”,
       atTime        = 0.0,
       delta         = 0.1,
    )
>>>
>>> camberLDev  = DeviationSquared (
       label       = "LW Camber Deviation @ T=0",
       signal      =  camberL,
       targetValue = 2.0
    )
>>>
>>> # Right wheel (RW) camber response
>>> camberR = ValueAtTime (
       label   = "RW Camber @ T=0",
       measuredValue =  “Camber (223,11)*RTOD”,
       atTime        = 0.0,
       delta         = 0.1,
    )
>>>
>>> camberLDev  = DeviationSquared (
       label       = "RW Camber Deviation @ T=0",
       signal      =  camberR,
       targetValue = 2.0,
    )
The calculations in DeviationSquared are implemented as follows:(1)
i f   | t a r g e t V a l u e |   >   ϵ : r e s p o n s e = 1 2   ( 1   -   s i g n a l t a r g e t V a l u e ) 2 e l s e :   r e s p o n s e = 1 2 ( s i g n a l   -   t arg e t V a l u e ) 2 MathType@MTEF@5@5@+= feaagKart1ev2aaatCvAUfeBSjuyZL2yd9gzLbvyNv2Caerbd9MBZ9 gBHnharuavP1wzZbItLDhis9wBH5garmqr1ngBPrgitLxBI9gBaerb d9wDYLwzYbItLDharqqr1ngBPrgifHhDYfgasaacH8qrps0lbbf9q8 WrFfeuY=Hhbbf9v8qqaqFr0xc9pk0xbba9q8WqFfea0=yr0RYxir=J bba9q8aq0=yq=He9q8qqQ8frFve9Fve9Ff0dmeaacaGacmWadaWaai GacaabbiqafiaakqaabeqaaabbaaaaaG+acXwDLbWdbiaadAgacaqG GaWaaqWaaeaacaWG0bGaciyyaiaackhacaGGNbGaamyzaiaadshaca WGwbGaamyyaiaadYgacaWG1bGaamyzaaGaay5bSlaawIa7aiaabcca cqGH+aGpcaqGGaGaeqyTduMaaiOoaiaaygW7caWGYbGaamyzaiaado hacaWGWbGaam4Baiaad6gacaWGZbGaamyzaiabg2da9maalaaabaGa aGymaaqaaiaaikdaaaGaaeiiamaabmaabaGaaGymaiaabccacaGGTa GaaeiiamaalaaabaGaam4CaiaadMgacaWGNbGaamOBaiaadggacaWG SbaabaGaamiDaiGacggacaGGYbGaai4zaiaadwgacaWG0bGaamOvai aadggacaWGSbGaamyDaiaadwgaaaaacaGLOaGaayzkaaWaaWbaaSqa beaacaaIYaaaaaGcbaGaamyzaiaadYgacaWGZbGaamyzaiaacQdaca qGGaGaamOCaiaadwgacaWGZbGaamiCaiaad+gacaWGUbGaam4Caiaa dwgacqGH9aqpdaWcaaqaaiaaigdaaeaacaaIYaaaamaabmaabaGaam 4CaiaadMgacaWGNbGaamOBaiaadggacaWGSbGaaeiiaiaac2cacaqG GaGaamiDaiGacggacaGGYbGaai4zaiaadwgacaWG0bGaamOvaiaadg gacaWGSbGaamyDaiaadwgaaiaawIcacaGLPaaadaahaaWcbeqaaiaa ikdaaaaaaaa@988A@