View source: R/PulseWaveform.R
make_matrix | R Documentation |
make_matrix combines individual waveform matrices for non-fixed parameters and the batch-wide matrix for fixed parameters into a singular matrix for inputting into the downhill simplex routine. The dimensions of the matrix are dependent on the number of beats in the inputted batch, such that matrix dimensions are:
[(6*n + 6) + 1] x [(6*n + 6)]
Where n = number of beats in the inputted batch. Therefore a batch of 10 waveforms would generate a matrix of 67x66. The number of columns also represents the number of dimensions the simplex will navigate in optimising parameters across the entire batch.
make_matrix(sim, a)
sim |
the matrix representing variations in fixed parameters across the batch |
a |
the set of matrices representing variations in non-fixed parameters for each waveform in the batch |
sim |
a combined matrix representative of both fixed and non-fixed parameters across the batch |
mat <- make_matrix(across_params, within_params)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.