메소드 | 설명 | |
---|---|---|
Add ( System.TimeSpan halfLife, |
||
Add ( double amountToAdd, System.TimeSpan halfLife, System.DateTime timeOfAddOperationUtc = null ) : void |
In-place addition
|
|
AddInPlace ( System.TimeSpan halfLife, |
||
AddInPlace ( System.TimeSpan halfLife, double amountToAdd, System.DateTime whenToAddIt ) : void | ||
Decay ( double valueLastSetTo, System.TimeSpan halfLife, System.DateTime whenLastSetUtc, System.DateTime timeToDecayTo = null ) : double | ||
DecayingDouble ( double initialValue = 0d, System.DateTime initialLastUpdateUtc = null ) : System |
A double that decays with time
|
|
GetValue ( System.TimeSpan halfLife, System.DateTime whenUtc = null ) : double |
Get the value of the double at a given instant in time. If using the current system time, the preferred way to get the value is not to call this method but to simply access the Value field.
|
|
SetValue ( |
||
SetValue ( double newValue, System.DateTime whenUtc = null ) : void |
Set the value at a point in time. If setting using the current system time, the preferred approach is to simply set the Value field.
|
|
Subtract ( System.TimeSpan halfLife, |
||
SubtractInPlace ( System.TimeSpan halfLife, |
||
SubtractInPlace ( System.TimeSpan halfLife, double amountToSubtract, System.DateTime whenToSubtractIt ) : void |
public Add ( System.TimeSpan halfLife, |
||
halfLife | System.TimeSpan | |
amountToAdd | ||
리턴 |
public Add ( double amountToAdd, System.TimeSpan halfLife, System.DateTime timeOfAddOperationUtc = null ) : void | ||
amountToAdd | double | The amount to add to the existing value. |
halfLife | System.TimeSpan | The half life to use when determining the existing value. |
timeOfAddOperationUtc | System.DateTime | When to add it, in UTC time (if NULL, sets it to the current clock time) |
리턴 | void |
public AddInPlace ( System.TimeSpan halfLife, |
||
halfLife | System.TimeSpan | |
amountToAdd | ||
리턴 | void |
public AddInPlace ( System.TimeSpan halfLife, double amountToAdd, System.DateTime whenToAddIt ) : void | ||
halfLife | System.TimeSpan | |
amountToAdd | double | |
whenToAddIt | System.DateTime | |
리턴 | void |
public static Decay ( double valueLastSetTo, System.TimeSpan halfLife, System.DateTime whenLastSetUtc, System.DateTime timeToDecayTo = null ) : double | ||
valueLastSetTo | double | |
halfLife | System.TimeSpan | |
whenLastSetUtc | System.DateTime | |
timeToDecayTo | System.DateTime | |
리턴 | double |
public DecayingDouble ( double initialValue = 0d, System.DateTime initialLastUpdateUtc = null ) : System | ||
initialValue | double | The initial value of the double, which defaults to zero. |
initialLastUpdateUtc | System.DateTime | The time when the value was set, which defaults to now. |
리턴 | System |
public GetValue ( System.TimeSpan halfLife, System.DateTime whenUtc = null ) : double | ||
halfLife | System.TimeSpan | The half life to use when determining the current value. |
whenUtc | System.DateTime | The instant of time for which the value should be calcualted, factoring in /// the decay rate. The default time is the current UTC time. |
리턴 | double |
public SetValue ( double newValue, System.DateTime whenUtc = null ) : void | ||
newValue | double | The new value to set. |
whenUtc | System.DateTime | When the set happened so as to correctly calculate future decay rates. /// Should be adjusted to UTC time. /// The default time is the current system time adjusted to UTC. |
리턴 | void |
public Subtract ( System.TimeSpan halfLife, |
||
halfLife | System.TimeSpan | |
amountToRemove | ||
리턴 |
public SubtractInPlace ( System.TimeSpan halfLife, |
||
halfLife | System.TimeSpan | |
amountToSubtract | ||
리턴 | void |
public SubtractInPlace ( System.TimeSpan halfLife, double amountToSubtract, System.DateTime whenToSubtractIt ) : void | ||
halfLife | System.TimeSpan | |
amountToSubtract | double | |
whenToSubtractIt | System.DateTime | |
리턴 | void |