Class StandardDeviation

  • All Implemented Interfaces:
    PathFunction

    public class StandardDeviation
    extends AbstractAggregation
    Provides the standard deviation of a series of numbers Created by mattg on 6/27/15.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Double count  
      private java.lang.Double sum  
      private java.lang.Double sumSq  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Number getValue()
      Obtains the value generated via the series of next value calls
      protected void next​(java.lang.Number value)
      Defines the next value in the array to the mathmatical function
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • sumSq

        private java.lang.Double sumSq
      • sum

        private java.lang.Double sum
      • count

        private java.lang.Double count
    • Constructor Detail

      • StandardDeviation

        public StandardDeviation()
    • Method Detail

      • next

        protected void next​(java.lang.Number value)
        Description copied from class: AbstractAggregation
        Defines the next value in the array to the mathmatical function
        Specified by:
        next in class AbstractAggregation
        Parameters:
        value - The numerical value to process next
      • getValue

        protected java.lang.Number getValue()
        Description copied from class: AbstractAggregation
        Obtains the value generated via the series of next value calls
        Specified by:
        getValue in class AbstractAggregation
        Returns:
        A numerical answer based on the input value provided