Class Sample

  • public class Sample
    extends java.lang.Object
    • Field Summary

      Modifier and Type Field Description
      protected double m1  
      protected double m2  
      protected double m3  
      protected double m4  
      protected long n  
    • Constructor Summary

      Constructor Description
      Sample​(double x, long f)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(double x)  
      void add​(double x, long f)  
      void add​(Sample distribution)  
      long count()  
      java.lang.Double distance​(Sample sample)  
      java.lang.Double max()  
      java.lang.Double mean()  
      java.lang.Double min()  
      java.lang.Double standardDeviation()  
      java.lang.String toString()  
      java.lang.Double variance()  
      • Methods inherited from class java.lang.Object

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

      • n

        protected long n
      • m1

        protected double m1
      • m2

        protected double m2
      • m3

        protected double m3
      • m4

        protected double m4
    • Constructor Detail

      • Sample

        public Sample()
      • Sample

        public Sample​(double x,
                      long f)
    • Method Detail

      • add

        public void add​(double x)
      • add

        public void add​(double x,
                        long f)
      • add

        public void add​(@NonNull
                        Sample distribution)
      • count

        public long count()
      • mean

        public java.lang.Double mean()
      • variance

        public java.lang.Double variance()
      • standardDeviation

        public java.lang.Double standardDeviation()
      • min

        public java.lang.Double min()
      • max

        public java.lang.Double max()
      • distance

        public java.lang.Double distance​(@NonNull
                                         Sample sample)
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object