Ejemplo n.º 1
0
 /// <summary>
 /// Create a new <see cref="StandardDeviation"/> statistic specifying
 /// the initial observation.
 /// </summary>
 /// <remarks>
 /// If <see cref="Value"/> is invoked immediately after instantiating a
 /// <see cref="StandardDeviation"/> instance using this constructor, the
 /// returned value is zero (0.0).
 /// </remarks>
 /// <param name="initialObservation">
 /// The value of the initial observation.
 /// </param>
 public StandardDeviation(double initialObservation)
 {
     _variance    = new Variance(initialObservation);
     Observations = _variance.Observations;
 }
Ejemplo n.º 2
0
 /// <overloads>
 /// Create and initialize a StandardDeviation statistic.
 /// </overloads>
 /// <summary>
 /// Create a new <see cref="StandardDeviation"/> statistic.
 /// </summary>
 /// <remarks>
 /// If <see cref="Value"/> is invoked immediately after instantiating a
 /// <see cref="StandardDeviation"/> instance using this constructor,
 /// the returned value is <see cref="Double.NaN"/>.
 /// </remarks>
 public StandardDeviation()
 {
     _variance = new Variance();
 }