|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.hadoop.stats.BasicStats
public final class BasicStats
Methods for calculating basic stats (mean, variance, stdDev, etc.) in map/reduce
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 configuration
IOException
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 configuration
IOException
InterruptedException
ClassNotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |