make_matrix: make_matrix

View source: R/PulseWaveform.R

make_matrixR Documentation

make_matrix

Description

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.

Usage

make_matrix(sim, a)

Arguments

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

Value

sim

a combined matrix representative of both fixed and non-fixed parameters across the batch

Examples

mat <- make_matrix(across_params, within_params)










stw32/PulseWaveform documentation built on Dec. 6, 2022, 2:50 a.m.