|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstatistics.ParallelEM
public final class ParallelEM
A parallel implementation of the EM algorithm. Uses an initial mixture and a ChunkedDataSet to update the parameters.
Field Summary | |
---|---|
MixtureDensity |
current
current estimate |
int |
ni
number of iterations performed by this instance |
MixtureDensity |
previous
previous estimate |
Constructor Summary | |
---|---|
ParallelEM(MixtureDensity initial,
ChunkedDataSet data,
int numThreads)
Generate a new Estimator for parallel EM iterations. |
Method Summary | |
---|---|
void |
iterate()
Perform one EM iteration |
void |
iterate(int iterations)
Perform a number of EM iterations |
void |
setChunkedDataSet(ChunkedDataSet data)
Set the data set to work on |
void |
setNumberOfThreads(int num)
Set the number of threads for the next iteration |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MixtureDensity current
public int ni
public MixtureDensity previous
Constructor Detail |
---|
public ParallelEM(MixtureDensity initial, ChunkedDataSet data, int numThreads) throws java.io.IOException
initial
- Initial mixture to start from (DATA IS MODIFIED)data
- data set to usenumThreads
- number of threads (= CPUs)
java.io.IOException
Method Detail |
---|
public void iterate() throws java.io.IOException, java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public void iterate(int iterations) throws java.io.IOException, java.lang.InterruptedException
iterations
-
java.io.IOException
java.lang.InterruptedException
public void setChunkedDataSet(ChunkedDataSet data)
public void setNumberOfThreads(int num)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |