public class CompartmentModel extends ParametricModel implements DataSource
Constructor and Description |
---|
CompartmentModel(java.lang.String[] comps,
double[] params)
constructor.
|
CompartmentModel(java.lang.String[] comps,
double[] params,
DW_Scheme scheme)
constructor with scheme for use in data synthesis.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCompartmentnames() |
RealMatrix |
getJacobian(double[] modParams,
DW_Scheme scheme)
Get Jacobian for each compartment separately.
|
double |
getSignal(double[] modParams,
DW_Scheme scheme,
int line)
sum up the signals from each compartment
|
RealMatrix |
getSignals(double[] modParams,
DW_Scheme scheme)
sum up the signals from each compartment
|
boolean |
more()
have we done all the voxels we've been asked for?
|
double[] |
nextVoxel()
interface for data synthesis.
|
getJacobian_old, getJacobian, numParams
public CompartmentModel(java.lang.String[] comps, double[] params)
comps
- names of compartmentsparams
- array of vol fracs plus model params for each compartmentpublic CompartmentModel(java.lang.String[] comps, double[] params, DW_Scheme scheme)
comps
- string specifying compartmentsparams
- linearised model params arrayscheme
- scheme file to usepublic RealMatrix getSignals(double[] modParams, DW_Scheme scheme)
getSignals
in class ParametricModel
modParams
- The model parametersscheme
- The acquisition schemepublic double getSignal(double[] modParams, DW_Scheme scheme, int line)
getSignal
in class ParametricModel
modParams
- The model parametersscheme
- The acquisition schemeline
- Index of the scheme entry to compute the signal forpublic RealMatrix getJacobian(double[] modParams, DW_Scheme scheme)
getJacobian
in class ParametricModel
public boolean more()
more
in interface DataSource
public double[] nextVoxel() throws DataSourceException
nextVoxel
in interface DataSource
DataSourceException
public java.lang.String[] getCompartmentnames()