Functions | |
bool | DimensionsOkFwd (MAP_DEPTH_MATRIX K, MAP_DEPTH_MATRIX b, MAP_DEPTH_MATRIX A, MATRIX Theta, bool useFourierTransform) |
void | ForwardCalc (InversionData *inversionData) |
void | setSeed (BaseDirectory *outputBaseDir, const LambdaSet *lambdaSet) |
InversionData * | ForwardInit (InputParms inputParms, char *commandLineOutputDir, bool debug) |
void | ForwardAddNoise (InversionData *inversionData) |
void | ForwardComplete (InversionData *inversionData) |
void | ForwardDestroy (InversionData *inversionData) |
bool | ForwardMoreParameterSteps (InversionData *inversionData) |
void | ForwardNextParameter (InversionData *inversionData) |
bool DimensionsOkFwd | ( | MAP_DEPTH_MATRIX | K, | |
MAP_DEPTH_MATRIX | b, | |||
MAP_DEPTH_MATRIX | A, | |||
MATRIX | Theta, | |||
bool | useFourierTransform | |||
) |
Check dimensions of matrices before performing calculations
[in] | K | kernel matrix |
[in] | b | model matrix |
[in] | A | noise amplitude matrix |
[in] | Theta | dz matrix |
[in] | useFourierTransform | True if matrices are in frequency domain. |
void ForwardAddNoise | ( | InversionData * | inversionData | ) |
Add noise to maps and stuff them into dTilde in the output model. Setup the output files with the parameter steps. Record parameter values in model and inversion data structure.
[in,out] | inversionData | Pointer to InversionData structure, which contains all input data, temporary data, parameters and result data. |
void ForwardCalc | ( | InversionData * | inversionData | ) |
Perform forward calculation using the input matrices and intermediate matrices. NOTE: Kernels must already have overlap matrix applied. Put the noise free maps (dTilda) in intermediate values, so they may be reused when adding noise.
[in,out] | inversionData | Pointer to structure containing all inversion data. |
void ForwardComplete | ( | InversionData * | inversionData | ) |
Complete forward calculation by writing d~ matrix.
[in] | inversionData | Pointer to data: K 4D-matrix containing Kernel data in wavespace. b 4D-matrix containing model data, b, in wavespace. d~ 4D-matrix containing estimate of travel-time map, in wavespace. baseDir BaseDirectory structure which manages the output filenames. debug Boolean flag: true if writing intermediate matrix values during inversion. |
void ForwardDestroy | ( | InversionData * | inversionData | ) |
Free memory after forward calculation is complete.
[in,out] | inversionData | Pointer to InversionData structure. |
InversionData* ForwardInit | ( | InputParms | inputParms, | |
char * | commandLineOutputDir, | |||
bool | debug | |||
) |
Fill InversionData structure with data from input file. Read kernels, model, and noise level parameter
[in] | inputParms | InputParms structure filled with filenames, directories and parameters extracted from input file. |
[in] | commandLineOutputDir | character string with new output directory specified on command line. |
[in] | debug | Boolean flag for writing intermediate matrix values. |
bool ForwardMoreParameterSteps | ( | InversionData * | inversionData | ) |
void ForwardNextParameter | ( | InversionData * | inversionData | ) |
void setSeed | ( | BaseDirectory * | outputBaseDir, | |
const LambdaSet * | lambdaSet | |||
) |
Set random generator seed from input file if possible, otherwise, use the system time. Write the seed to an output file
[in] | outputBaseDir | The BaseDirectory for all output files. |
[in] | lambdaSet | The random seed comes from the input parameter file as the minimum value in a LambdaSet. |