Produces an event object suitable for building event schedules to pass spec_rescomp().

event_sp_custom(func, spnum = NULL)

Arguments

func

A function that takes species (a numeric vector of species concentrations) and params (a list of parameters) and returns a numeric vector of species concentrations.

spnum

The number of species.

Value

S3 object of class rescomp_event.

Details

If spnum is NULL, spec_rescomp() will attempt to infer it. This is fine if the result is used directly in an event schedule, but may fail if the result must be combined with other rescomp_events first.

Examples

# TODO