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
- IOException
InterruptedException
ClassNotFoundException
public 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
- IOException
InterruptedException
ClassNotFoundException
public 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 configurationIOException
InterruptedException
ClassNotFoundException
public 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 configurationIOException
InterruptedException
ClassNotFoundException
Copyright © 2008–2017 The Apache Software Foundation. All rights reserved.