Class BinarySample

Object
org.apache.spark.mllib.stat.test.BinarySample
All Implemented Interfaces:
Serializable, scala.Equals, scala.Product

public class BinarySample extends Object implements scala.Product, Serializable
Class that represents the group and value of a sample.

param: isExperiment if the sample is of the experiment group. param: value numeric value of the observation.

See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    BinarySample(boolean isExperiment, double value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract static R
    apply(T1 v1, T2 v2)
     
    boolean
     
    double
     
    boolean
     
     
    double
     

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface scala.Equals

    canEqual, equals

    Methods inherited from interface scala.Product

    productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
  • Constructor Details

    • BinarySample

      public BinarySample(boolean isExperiment, double value)
  • Method Details

    • apply

      public abstract static R apply(T1 v1, T2 v2)
    • isExperiment

      public boolean isExperiment()
    • value

      public double value()
    • getIsExperiment

      public boolean getIsExperiment()
    • getValue

      public double getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Object