MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ coupled_map_lattice_state()

MAYAFLUX_API std::vector< double > MayaFlux::Kinesis::Discrete::coupled_map_lattice_state ( std::span< const double >  cells,
double  r,
double  epsilon 
)

Builds the array coupled_map_lattice reads and writes.

Parameters
cellsStarting cell values in [0, 1]; sets the count
rLogistic parameter, up to 4
epsilonCoupling to the two neighbours in [0, 1]

Layout: [N, r, epsilon, cells, scratch], the scratch column holding the mapped values between steps.

Definition at line 547 of file Kernels.cpp.

549{
550 const size_t n = cells.size();
551 std::vector<double> state(3 + 2 * n, 0.0);
552 state.front() = static_cast<double>(n);
553 state.at(1) = r;
554 state.at(2) = epsilon;
555
556 for (size_t i = 0; i < n; ++i)
557 state.at(3 + i) = cells[i];
558 return state;
559}