コード例 #1
0
 /// <summary>
 /// Calculates the difference between the last two samples in the range vector v, returning an instant vector with the given deltas and equivalent labels.
 /// InstantDelta should only be used with gauges.
 /// </summary>
 /// <returns></returns>
 public InstantVector InstantDelta()
 {
     AddAction(InstantDeltaFunction.Create());
     return(InstantVector.WithString(this));
 }
コード例 #2
0
 /// <summary>
 /// Calculates the per-second derivative of the time series in a range vector, using simple linear regression.
 /// </summary>
 /// <returns></returns>
 public InstantVector Derivative()
 {
     AddAction(DerivativeFunction.Create());
     return(InstantVector.WithString(this));
 }
コード例 #3
0
 /// <summary>
 /// Produces a smoothed value for time series based on the range.
 /// The lower the smoothing factor sf, the more importance is given to old data.
 /// The higher the trend factor tf, the more trends in the data is considered. Both sf and tf must be between 0 and 1.
 /// HoltWinters should only be used with gauges.
 /// </summary>
 /// <returns></returns>
 public InstantVector HoltWinters(float sf, float tf)
 {
     AddAction(HoltWintersFunction.Create(sf, tf));
     return(InstantVector.WithString(this));
 }
コード例 #4
0
 /// <summary>
 /// The count of all values in the specified interval.
 /// </summary>
 /// <returns></returns>
 public InstantVector CountOverTime()
 {
     AddAction(CountOverTimeFunction.Create());
     return(InstantVector.WithString(this));
 }
コード例 #5
0
 /// <summary>
 /// For each input time series, returns the number of times its value has changed within the provided time range as an instant vector.
 /// </summary>
 /// <returns></returns>
 public InstantVector Changes()
 {
     AddAction(ChangesFunction.Create());
     return(InstantVector.WithString(this));
 }
コード例 #6
0
 /// <summary>
 /// The population standard variance of the values in the specified interval.
 /// </summary>
 /// <returns></returns>
 public InstantVector StandardVarianceOverTime()
 {
     AddAction(StandardVarianceOverTimeFunction.Create());
     return(InstantVector.WithString(this));
 }
コード例 #7
0
 /// <summary>
 /// Returns the number of counter resets within the provided time range as an instant vector. Any decrease in the value between two consecutive samples is interpreted as a counter reset.
 /// Resets should only be used with counters.
 /// </summary>
 /// <returns></returns>
 public InstantVector Resets()
 {
     AddAction(ResetsFunction.Create());
     return(InstantVector.WithString(this));
 }
コード例 #8
0
 /// <summary>
 /// Predicts the value of time series from now, based on the range vector, using simple linear regression.
 /// PredictLinear should only be used with gauges.
 /// </summary>
 /// <returns></returns>
 public InstantVector PredictLinear(float seconds)
 {
     AddAction(PredictLinearFunction.Create(seconds));
     return(InstantVector.WithString(this));
 }