public final class BasicStats extends Object
| Modifier and Type | Method and Description |
|---|---|
static double |
stdDev(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
org.apache.hadoop.conf.Configuration baseConf)
Calculate the standard deviation
|
static double |
stdDevForGivenMean(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
double mean,
org.apache.hadoop.conf.Configuration baseConf)
Calculate the standard deviation given a predefined mean
|
static double |
variance(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
org.apache.hadoop.conf.Configuration baseConf)
Calculate the variance of values stored as
|
static double |
varianceForGivenMean(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
double mean,
org.apache.hadoop.conf.Configuration baseConf)
Calculate the variance by a predefined mean of values stored as
|
public static double variance(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
org.apache.hadoop.conf.Configuration baseConf)
throws IOException,
InterruptedException,
ClassNotFoundException
input - The input file containing the key and the countoutput - The output to store the intermediate valuesbaseConf - IOExceptionInterruptedExceptionClassNotFoundExceptionpublic static double varianceForGivenMean(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
double mean,
org.apache.hadoop.conf.Configuration baseConf)
throws IOException,
InterruptedException,
ClassNotFoundException
input - The input file containing the key and the countoutput - The output to store the intermediate valuesmean - The mean based on which to compute the variancebaseConf - IOExceptionInterruptedExceptionClassNotFoundExceptionpublic static double stdDev(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
org.apache.hadoop.conf.Configuration baseConf)
throws IOException,
InterruptedException,
ClassNotFoundException
input - The input file containing the key and the countoutput - The output file to write the counting results tobaseConf - The base configurationIOExceptionInterruptedExceptionClassNotFoundExceptionpublic static double stdDevForGivenMean(org.apache.hadoop.fs.Path input,
org.apache.hadoop.fs.Path output,
double mean,
org.apache.hadoop.conf.Configuration baseConf)
throws IOException,
InterruptedException,
ClassNotFoundException
input - The input file containing the key and the countoutput - The output file to write the counting results tomean - The mean based on which to compute the standard deviationbaseConf - The base configurationIOExceptionInterruptedExceptionClassNotFoundExceptionCopyright © 2008–2017 The Apache Software Foundation. All rights reserved.