|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMonteCarloSampling
Method Summary | |
---|---|
int |
getLinearCoord(int[] multidimensionalCoord)
Get the linear coordinate from the multidimensional one. |
byte[] |
getMultidimensionalCoord(int linearCoord)
Get the multidimensional coordinate from the linear one. |
byte[][] |
getSampledStatesCompactMatrix()
Returns the generated compact sample matrix. |
Map<Integer,Integer> |
getSampledStatesMap()
Returns the generated sample map, with key = linear coord (representing the sates sampled) and value = number of times this key was sampled. |
byte[][] |
getSampledStatesMatrix()
Returns the generated sample matrix. |
List<Node> |
getSamplingNodeOrderQueue()
Return the order the nodes are in the sampled matrix. |
int[] |
getStatesSetTimesSampled()
The number of times the ith set of states was sampled. |
void |
start(ProbabilisticNetwork pn,
int nTrials)
Generates the MC sample with the given size for the given probabilistic network. |
Methods inherited from interface unbbayes.util.longtask.ILongTaskProgressObservable |
---|
getCurrentProgress, getCurrentProgressStatus, getMaxProgress, getPercentageDone, notityObservers, registerObserver, removeObserver |
Method Detail |
---|
byte[][] getSampledStatesMatrix()
byte[][] getSampledStatesCompactMatrix()
getStatesSetTimesSampled()
.
int[] getStatesSetTimesSampled()
Map<Integer,Integer> getSampledStatesMap()
List<Node> getSamplingNodeOrderQueue()
void start(ProbabilisticNetwork pn, int nTrials)
pn
- Probabilistic network that will be used for sampling.nTrials
- Number of trials to generate.int getLinearCoord(int[] multidimensionalCoord)
multidimensionalCoord
- Multidimensional coordinate (represented by the state for
each node).
byte[] getMultidimensionalCoord(int linearCoord)
linearCoord
- The linear coordinate.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |