public abstract class BayesDiracRandomizer
extends java.lang.Object
Constructor and Description |
---|
BayesDiracRandomizer(float[][][][] data,
DW_Scheme scheme,
int pointSetIndex,
java.util.Random ran) |
BayesDiracRandomizer(float[][][][] data,
DW_Scheme scheme,
java.util.Random ran) |
Modifier and Type | Method and Description |
---|---|
Vector3D[] |
getRandomizedPDs(int i,
int j,
int k)
Samples from the likelihood function in this voxel, does not consider the prior fibre orientation.
|
Vector3D[] |
getRandomizedPDs(int i,
int j,
int k,
Vector3D previousDir)
Samples from the posterior distribution in this voxel.
|
void |
initializeSphericalPointSet(int index) |
void |
setCurvatureG(double g)
Sets the improper curvature prior |v_i \dot v_{i-1}|^\gamma, where v_i is the current
orientation and v_{i-1} is the previous orientation.
|
void |
setCurvatureK(double k)
Curvature prior is a Watson distribution centred on the previous direction.
|
void |
setExternalPriors(PICoRandomizer randomizer)
Set external priors.
|
public BayesDiracRandomizer(float[][][][] data, DW_Scheme scheme, java.util.Random ran)
public BayesDiracRandomizer(float[][][][] data, DW_Scheme scheme, int pointSetIndex, java.util.Random ran)
public final Vector3D[] getRandomizedPDs(int i, int j, int k)
public final Vector3D[] getRandomizedPDs(int i, int j, int k, Vector3D previousDir)
previousDir
, which
should be a vector returned by the getRandomizedPDs method of this class.public void setCurvatureK(double k)
Calling this method removes any previous curvature prior.
public void setCurvatureG(double g)
public void setExternalPriors(PICoRandomizer randomizer)
public void initializeSphericalPointSet(int index)