Tabnine Logo
org.apache.commons.math.stat.descriptive.moment
Code IndexAdd Tabnine to your IDE (free)

How to use org.apache.commons.math.stat.descriptive.moment

Best Java code snippets using org.apache.commons.math.stat.descriptive.moment (Showing top 20 results out of 315)

origin: org.apache.commons/commons-math

/**
 * Copies source to dest.
 * <p>Neither source nor dest can be null.</p>
 *
 * @param source StandardDeviation to copy
 * @param dest StandardDeviation to copy to
 * @throws NullPointerException if either source or dest is null
 */
public static void copy(StandardDeviation source, StandardDeviation dest) {
  dest.setData(source.getDataRef());
  dest.variance = source.variance.copy();
}
origin: org.apache.commons/commons-math

/**
 * Copies source to dest.
 * <p>Neither source nor dest can be null.</p>
 *
 * @param source Kurtosis to copy
 * @param dest Kurtosis to copy to
 * @throws NullPointerException if either source or dest is null
 */
public static void copy(Kurtosis source, Kurtosis dest) {
  dest.setData(source.getDataRef());
  dest.moment = source.moment.copy();
  dest.incMoment = source.incMoment;
}
origin: org.apache.commons/commons-math

  /**
   * Copies source to dest.
   * <p>Neither source nor dest can be null.</p>
   *
   * @param source Skewness to copy
   * @param dest Skewness to copy to
   * @throws NullPointerException if either source or dest is null
   */
  public static void copy(Skewness source, Skewness dest) {
    dest.setData(source.getDataRef());
    dest.moment = new ThirdMoment(source.moment.copy());
    dest.incMoment = source.incMoment;
  }
}
origin: org.apache.commons/commons-math

/** Constructs a VectorialMean.
 * @param dimension vectors dimension
 */
public VectorialMean(int dimension) {
  means = new Mean[dimension];
  for (int i = 0; i < dimension; ++i) {
    means[i] = new Mean();
  }
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public StandardDeviation copy() {
  StandardDeviation result = new StandardDeviation();
  copy(this, result);
  return result;
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public Variance copy() {
  Variance result = new Variance();
  copy(this, result);
  return result;
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public ThirdMoment copy() {
  ThirdMoment result = new ThirdMoment();
  copy(this, result);
  return result;
}
origin: org.apache.commons/commons-math

/**
 * Constructs a Variance with default (true) <code>isBiasCorrected</code>
 * property.
 */
public Variance() {
  moment = new SecondMoment();
}
origin: org.apache.commons/commons-math

  /**
   * Copies source to dest.
   * <p>Neither source nor dest can be null.</p>
   *
   * @param source Mean to copy
   * @param dest Mean to copy to
   * @throws NullPointerException if either source or dest is null
   */
  public static void copy(Mean source, Mean dest) {
    dest.setData(source.getDataRef());
    dest.incMoment = source.incMoment;
    dest.moment = source.moment.copy();
  }
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public void clear() {
  if (incMoment) {
    moment.clear();
  }
}
origin: org.apache.commons/commons-math

/**
 * @return Returns the isBiasCorrected.
 */
public boolean isBiasCorrected() {
  return variance.isBiasCorrected();
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public void clear() {
  if (incMoment) {
    moment.clear();
  }
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public void increment(final double d) {
  if (incMoment) {
    moment.increment(d);
  }
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public void increment(final double d) {
  if (incMoment) {
    moment.increment(d);
  }
}
origin: org.apache.commons/commons-math

/**
 * Copy constructor, creates a new {@code Mean} identical
 * to the {@code original}
 *
 * @param original the {@code Mean} instance to copy
 */
public Mean(Mean original) {
  copy(original, this);
}
origin: org.apache.commons/commons-math

/**
 * Copy constructor, creates a new {@code Skewness} identical
 * to the {@code original}
 *
 * @param original the {@code Skewness} instance to copy
 */
public Skewness(Skewness original) {
  copy(original, this);
}
origin: org.apache.commons/commons-math

/**
 * Copy constructor, creates a new {@code FourthMoment} identical
 * to the {@code original}
 *
 * @param original the {@code FourthMoment} instance to copy
 */
 public FourthMoment(FourthMoment original) {
   super();
   copy(original, this);
 }
origin: org.apache.commons/commons-math

/**
 * Copy constructor, creates a new {@code Variance} identical
 * to the {@code original}
 *
 * @param original the {@code Variance} instance to copy
 */
public Variance(Variance original) {
  copy(original, this);
}
origin: org.apache.commons/commons-math

/**
 * Copies source to dest.
 * <p>Neither source nor dest can be null.</p>
 *
 * @param source SecondMoment to copy
 * @param dest SecondMoment to copy to
 * @throws NullPointerException if either source or dest is null
 */
public static void copy(SecondMoment source, SecondMoment dest) {
  FirstMoment.copy(source, dest);
  dest.m2 = source.m2;
}
origin: org.apache.commons/commons-math

/**
 * {@inheritDoc}
 */
@Override
public void clear() {
  super.clear();
  m2 = Double.NaN;
}
org.apache.commons.math.stat.descriptive.moment

Most used classes

  • Mean
    Computes the arithmetic mean of a set of values. Uses the definitional formula: mean = sum(x_i) /
  • StandardDeviation
    Computes the sample standard deviation. The standard deviation is the positive square root of the va
  • SecondMoment
    Computes a statistic related to the Second Central Moment. Specifically, what is computed is the sum
  • Variance
    Computes the variance of the available values. By default, the unbiased "sample variance" definition
  • FirstMoment
    Computes the first moment (arithmetic mean). Uses the definitional formula: mean = sum(x_i) / n w
  • GeometricMean,
  • Kurtosis,
  • Skewness,
  • ThirdMoment,
  • VectorialCovariance,
  • SemiVariance$Direction,
  • SemiVariance,
  • VectorialMean
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now