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

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

Best Java code snippets using org.apache.commons.math.stat.descriptive.StatisticalSummary.getStandardDeviation (Showing top 7 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: org.apache.commons/commons-math

/**
 * Computes the empirical distribution using values from the file
 * in <code>valuesFileURL</code> and <code>binCount</code> bins.
 * <p>
 * <code>valuesFileURL</code> must exist and be readable by this process
 * at runtime.</p>
 * <p>
 * This method must be called before using <code>getNext()</code>
 * with <code>mode = DIGEST_MODE</code></p>
 *
 * @param binCount the number of bins used in computing the empirical
 * distribution
 * @throws IOException if an error occurs reading the input file
 */
public void computeDistribution(int binCount)
    throws IOException {
  empiricalDistribution = new EmpiricalDistributionImpl(binCount);
  empiricalDistribution.load(valuesFileURL);
  mu = empiricalDistribution.getSampleStats().getMean();
  sigma = empiricalDistribution.getSampleStats().getStandardDeviation();
}
origin: commons-math/commons-math

/**
 * Computes the empirical distribution using values from the file
 * in <code>valuesFileURL</code> and <code>binCount</code> bins.
 * <p>
 * <code>valuesFileURL</code> must exist and be readable by this process
 * at runtime.</p>
 * <p>
 * This method must be called before using <code>getNext()</code>
 * with <code>mode = DIGEST_MODE</code></p>
 *
 * @param binCount the number of bins used in computing the empirical
 * distribution
 * @throws IOException if an error occurs reading the input file
 */
public void computeDistribution(int binCount)
    throws IOException {
  empiricalDistribution = new EmpiricalDistributionImpl(binCount);
  empiricalDistribution.load(valuesFileURL);
  mu = empiricalDistribution.getSampleStats().getMean();
  sigma = empiricalDistribution.getSampleStats().getStandardDeviation();
}
origin: org.apache.commons/math

/**
 * Computes the empirical distribution using values from the file
 * in <code>valuesFileURL</code> and <code>binCount</code> bins.
 * <p>
 * <code>valuesFileURL</code> must exist and be readable by this process
 * at runtime.</p>
 * <p>
 * This method must be called before using <code>getNext()</code>
 * with <code>mode = DIGEST_MODE</code></p>
 *
 * @param binCount the number of bins used in computing the empirical
 * distribution
 * @throws IOException if an error occurs reading the input file
 */
public void computeDistribution(int binCount)
    throws IOException {
  empiricalDistribution = new EmpiricalDistributionImpl(binCount);
  empiricalDistribution.load(valuesFileURL);
  mu = empiricalDistribution.getSampleStats().getMean();
  sigma = empiricalDistribution.getSampleStats().getStandardDeviation();
}
origin: org.eobjects.analyzerbeans/AnalyzerBeans-basic-analyzers

final double sum = s.getSum();
final double mean = s.getMean();
final double standardDeviation = s.getStandardDeviation();
final double variance = s.getVariance();
origin: datacleaner/DataCleaner

final double sum = s.getSum();
final double mean = s.getMean();
final double standardDeviation = s.getStandardDeviation();
final double variance = s.getVariance();
org.apache.commons.math.stat.descriptiveStatisticalSummarygetStandardDeviation

Javadoc

Returns the standard deviation 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
  • getVariance
    Returns the variance 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
  • compareTo (BigDecimal)
  • getContentResolver (Context)
  • requestLocationUpdates (LocationManager)
  • Menu (java.awt)
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Sublime Text plugins
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