Tabnine Logo
StatisticalSummary.getVariance
Code IndexAdd Tabnine to your IDE (free)

How to use
getVariance
method
in
org.apache.commons.math.stat.descriptive.StatisticalSummary

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

origin: datacleaner/DataCleaner

@Override
protected Serializable reduceValues(final List<Object> slaveValues, final String column, final String measure,
    final Collection<? extends NumberAnalyzerResult> results, final Class<?> valueClass) {
  if (SUM_MEASURES.contains(measure)) {
    return sum(slaveValues);
  } else if (NumberAnalyzer.MEASURE_HIGHEST_VALUE.equals(measure)) {
    return maximum(slaveValues);
  } else if (NumberAnalyzer.MEASURE_LOWEST_VALUE.equals(measure)) {
    return minimum(slaveValues);
  } else if (NumberAnalyzer.MEASURE_MEAN.equals(measure)) {
    final StatisticalSummary summary = getSummary(column, results);
    return summary.getMean();
  } else if (NumberAnalyzer.MEASURE_STANDARD_DEVIATION.equals(measure)) {
    final StatisticalSummary summary = getSummary(column, results);
    return summary.getStandardDeviation();
  } else if (NumberAnalyzer.MEASURE_VARIANCE.equals(measure)) {
    final StatisticalSummary summary = getSummary(column, results);
    return summary.getVariance();
  }
  logger.warn("Encountered non-reduceable measure '{}'. Slave values are: {}", measure, slaveValues);
  return null;
}
origin: org.eobjects.analyzerbeans/AnalyzerBeans-basic-analyzers

@Override
protected Serializable reduceValues(List<Object> slaveValues, String column, String measure,
    Collection<? extends NumberAnalyzerResult> results, Class<?> valueClass) {
  if (SUM_MEASURES.contains(measure)) {
    return sum(slaveValues);
  } else if (NumberAnalyzer.MEASURE_HIGHEST_VALUE.equals(measure)) {
    return maximum(slaveValues);
  } else if (NumberAnalyzer.MEASURE_LOWEST_VALUE.equals(measure)) {
    return minimum(slaveValues);
  } else if (NumberAnalyzer.MEASURE_MEAN.equals(measure)) {
    StatisticalSummary summary = getSummary(column, results);
    return summary.getMean();
  } else if (NumberAnalyzer.MEASURE_STANDARD_DEVIATION.equals(measure)) {
    StatisticalSummary summary = getSummary(column, results);
    return summary.getStandardDeviation();
  } else if (NumberAnalyzer.MEASURE_VARIANCE.equals(measure)) {
    StatisticalSummary summary = getSummary(column, results);
    return summary.getVariance();
  }
  
  logger.warn("Encountered non-reduceable measure '{}'. Slave values are: {}", measure, slaveValues);
  return null;
}
origin: commons-math/commons-math

/**
 * Computes a <a href="http://www.itl.nist.gov/div898/handbook/prc/section2/prc22.htm#formula">
 * t statistic </a> to use in comparing the mean of the dataset described by 
 * <code>sampleStats</code> to <code>mu</code>.
 * <p>
 * This statistic can be used to perform a one sample t-test for the mean.
 * </p><p>
 * <strong>Preconditions</strong>: <ul>
 * <li><code>observed.getN() > = 2</code>.
 * </li></ul></p>
 *
 * @param mu comparison constant
 * @param sampleStats DescriptiveStatistics holding sample summary statitstics
 * @return t statistic
 * @throws IllegalArgumentException if the precondition is not met
 */
public double t(double mu, StatisticalSummary sampleStats)
throws IllegalArgumentException {
  if ((sampleStats == null) || (sampleStats.getN() < 2)) {
    throw new IllegalArgumentException("insufficient data for t statistic");
  }
  return t(sampleStats.getMean(), mu, sampleStats.getVariance(),
      sampleStats.getN());
}
origin: commons-math/commons-math

  throw new IllegalArgumentException("insufficient data for t statistic");
return tTest(sampleStats1.getMean(), sampleStats2.getMean(), sampleStats1.getVariance(),
    sampleStats2.getVariance(), (double) sampleStats1.getN(), 
    (double) sampleStats2.getN());
origin: commons-math/commons-math

sampleStats2.getMean(), sampleStats1.getVariance(),
sampleStats2.getVariance(), (double) sampleStats1.getN(), 
(double) sampleStats2.getN());
origin: commons-math/commons-math

sampleStats1.getVariance(), sampleStats2.getVariance(),
(double) sampleStats1.getN(), (double) sampleStats2.getN());
origin: commons-math/commons-math

  throw new IllegalArgumentException("insufficient data for t statistic");
return tTest(sampleStats.getMean(), mu, sampleStats.getVariance(),
    sampleStats.getN());
origin: commons-math/commons-math

sampleStats1.getVariance(), sampleStats2.getVariance(), 
(double) sampleStats1.getN(), (double) sampleStats2.getN());
origin: org.apache.commons/commons-math

checkSampleData(sampleStats1);
checkSampleData(sampleStats2);
return tTest(sampleStats1.getMean(), sampleStats2.getMean(), sampleStats1.getVariance(),
    sampleStats2.getVariance(), sampleStats1.getN(),
    sampleStats2.getN());
origin: org.apache.commons/commons-math

/**
 * Computes a <a href="http://www.itl.nist.gov/div898/handbook/prc/section2/prc22.htm#formula">
 * t statistic </a> to use in comparing the mean of the dataset described by
 * <code>sampleStats</code> to <code>mu</code>.
 * <p>
 * This statistic can be used to perform a one sample t-test for the mean.
 * </p><p>
 * <strong>Preconditions</strong>: <ul>
 * <li><code>observed.getN() > = 2</code>.
 * </li></ul></p>
 *
 * @param mu comparison constant
 * @param sampleStats DescriptiveStatistics holding sample summary statitstics
 * @return t statistic
 * @throws IllegalArgumentException if the precondition is not met
 */
public double t(double mu, StatisticalSummary sampleStats)
throws IllegalArgumentException {
  checkSampleData(sampleStats);
  return t(sampleStats.getMean(), mu, sampleStats.getVariance(),
      sampleStats.getN());
}
origin: org.apache.commons/math

/**
 * Computes a <a href="http://www.itl.nist.gov/div898/handbook/prc/section2/prc22.htm#formula">
 * t statistic </a> to use in comparing the mean of the dataset described by
 * <code>sampleStats</code> to <code>mu</code>.
 * <p>
 * This statistic can be used to perform a one sample t-test for the mean.
 * </p><p>
 * <strong>Preconditions</strong>: <ul>
 * <li><code>observed.getN() > = 2</code>.
 * </li></ul></p>
 *
 * @param mu comparison constant
 * @param sampleStats DescriptiveStatistics holding sample summary statitstics
 * @return t statistic
 * @throws IllegalArgumentException if the precondition is not met
 */
public double t(double mu, StatisticalSummary sampleStats)
throws IllegalArgumentException {
  checkSampleData(sampleStats);
  return t(sampleStats.getMean(), mu, sampleStats.getVariance(),
      sampleStats.getN());
}
origin: org.apache.commons/commons-math

checkSampleData(sampleStats2);
return homoscedasticTTest(sampleStats1.getMean(),
    sampleStats2.getMean(), sampleStats1.getVariance(),
    sampleStats2.getVariance(), sampleStats1.getN(),
    sampleStats2.getN());
origin: org.apache.commons/math

checkSampleData(sampleStats2);
return homoscedasticT(sampleStats1.getMean(), sampleStats2.getMean(),
    sampleStats1.getVariance(), sampleStats2.getVariance(),
    sampleStats1.getN(), sampleStats2.getN());
origin: org.apache.commons/commons-math

checkSampleData(sampleStats2);
return t(sampleStats1.getMean(), sampleStats2.getMean(),
    sampleStats1.getVariance(), sampleStats2.getVariance(),
    sampleStats1.getN(), sampleStats2.getN());
origin: org.apache.commons/math

checkSampleData(sampleStats2);
return homoscedasticTTest(sampleStats1.getMean(),
    sampleStats2.getMean(), sampleStats1.getVariance(),
    sampleStats2.getVariance(), sampleStats1.getN(),
    sampleStats2.getN());
origin: org.apache.commons/commons-math

checkSampleData(sampleStats2);
return homoscedasticT(sampleStats1.getMean(), sampleStats2.getMean(),
    sampleStats1.getVariance(), sampleStats2.getVariance(),
    sampleStats1.getN(), sampleStats2.getN());
origin: org.apache.commons/math

checkSampleData(sampleStats2);
return t(sampleStats1.getMean(), sampleStats2.getMean(),
    sampleStats1.getVariance(), sampleStats2.getVariance(),
    sampleStats1.getN(), sampleStats2.getN());
origin: org.apache.commons/math

checkSampleData(sampleStats1);
checkSampleData(sampleStats2);
return tTest(sampleStats1.getMean(), sampleStats2.getMean(), sampleStats1.getVariance(),
    sampleStats2.getVariance(), sampleStats1.getN(),
    sampleStats2.getN());
origin: org.apache.commons/commons-math

throws IllegalArgumentException, MathException {
  checkSampleData(sampleStats);
  return tTest(sampleStats.getMean(), mu, sampleStats.getVariance(),
      sampleStats.getN());
origin: org.apache.commons/math

throws IllegalArgumentException, MathException {
  checkSampleData(sampleStats);
  return tTest(sampleStats.getMean(), mu, sampleStats.getVariance(),
      sampleStats.getN());
org.apache.commons.math.stat.descriptiveStatisticalSummarygetVariance

Javadoc

Returns the variance of the available values.

Popular methods of StatisticalSummary

  • getMean
    Returns the arithmetic mean [http://www.xycoon.com/arithmetic_mean.htm] of the available values
  • getN
    Returns the number of available values
  • getStandardDeviation
    Returns the standard deviation of the available values.
  • getMax
    Returns the maximum of the available values
  • getMin
    Returns the minimum of the available values
  • getSum
    Returns the sum of the values that have been added to Univariate.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • String (java.lang)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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