public class QuasiMonteCarlo extends Configured implements Tool
| Modifier and Type | Class and Description |
|---|---|
static class |
QuasiMonteCarlo.QmcMapper
Mapper class for Pi estimation.
|
static class |
QuasiMonteCarlo.QmcReducer
Reducer class for Pi estimation.
|
| Constructor and Description |
|---|
QuasiMonteCarlo() |
| Modifier and Type | Method and Description |
|---|---|
static BigDecimal |
estimatePi(int numMaps,
long numPoints,
Path tmpDir,
Configuration conf)
Run a map/reduce job for estimating Pi.
|
static void |
main(String[] argv)
main method for running it as a stand alone command.
|
int |
run(String[] args)
Parse arguments and then runs a map/reduce job.
|
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfpublic static BigDecimal estimatePi(int numMaps, long numPoints, Path tmpDir, Configuration conf) throws IOException, ClassNotFoundException, InterruptedException
IOExceptionClassNotFoundExceptionInterruptedExceptionpublic int run(String[] args) throws Exception
Copyright © 2018 CERN. All Rights Reserved.