sample_table

View page source

The Sample Table: Samples of Variable Values

Simulated Data

The sample_command creates this table with one optimal estimates of the model_variables . For each valid simulate_index . in the data_sim_table , there is an equal sample_index in the table with the optimal variables for the corresponding measurement.

User’s Choice

This table may also be created directly by the user, with the aid of the var_table . This is useful when one wants to use the predict_command with a specific set of variable values; e.g., the values in the fit_var_table .

sample_id

This column has type integer and is the primary key for this table. Its initial value is zero, and it increments by one for each row.

sample_index

This column has type integer and specifies the index, for each complete set of model_variables , in the sample table. If n_var is the number of rows in the var_table ,

sample_index = mod ( sample_id , n_var )

The range of sample_index is form zero to number_simulate minus one.

var_id

This column has type integer and specifies the model_variables that var_value corresponds to; see var_id . If n_var and sample index are as above,

sample_id = sample_index * n_var + var_id

var_value

This column type real and is the variable value for this var_id and sample_index .

Example

The sample_command.py is an example that creates this table.