Class Sample


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

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

      Constructors 
      Constructor Description
      Sample()  
      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

        @Nullable
        public java.lang.Double mean()
      • variance

        @Nullable
        public java.lang.Double variance()
      • standardDeviation

        @Nullable
        public java.lang.Double standardDeviation()
      • min

        @Nullable
        public java.lang.Double min()
      • max

        @Nullable
        public java.lang.Double max()
      • distance

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

        @NonNull
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object