fast_history_compute {bistablehistory} | R Documentation |
Computes cumulative history
Description
Computes cumulative history based on common history
values and
normalized_tau
and mixed_state
that are defined for each
random cluster / individual.
Usage
fast_history_compute(df, normalized_tau, mixed_state, history_init)
Arguments
df |
DataFrame with |
normalized_tau |
DoubleVector A normalized tau value for each random cluster / individual. Thus, its length must be
equal to the number of unique indexes in |
mixed_state |
DoubleVector A values used for the mixed state for each random cluster / individual.
Thus, its length must be equal to the number of unique indexes in |
history_init |
DoubleVector, size 2. Initial values of history for a run. |
Value
NumericMatrix, size df.nrows()
× 2. Computed history values for each state.
Examples
df <- preprocess_data(br_singleblock, state="State", duration="Duration")
fast_history_compute(df, 1, 0.5, c(0, 0))