Current R API
This page renders every exported R symbol in the validated native binding inventory. Signatures and documentation come from the same checked source. Source links point to the moving main branch; hashes identify the exact inputs.
The binding calls the Rust kernel through the native C ABI. Generation does not load the native library or execute examples. Native language execution and scientific review are separate qualification requirements.
Python reference · Julia reference · R reference
Public exports
Section titled “Public exports”export_ipc_fileexport_ipc_streaminvoke_registered_extensionkernel_aggregate_dateskernel_callkernel_call_jsonkernel_categorize_adopterskernel_categorize_fitted_adopterskernel_cumulative_sumkernel_diagnose_modelkernel_discover_modelskernel_fit_batchkernel_fit_modelkernel_paired_outcomes_ipckernel_predict_batchkernel_predict_modelkernel_rolling_averagekernel_sarima_fitkernel_scenario_comparisons_ipckernel_scenario_executions_ipckernel_scenario_grid_ipckernel_seasonal_decompositionkernel_simulate_modelkernel_summarize_model
export_ipc_file
Section titled “export_ipc_file”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”export_ipc_file(data)Rewrite supported Arrow IPC input in portable file format.
The output includes the file footer required for random-access interchange. Rewriting does not promise byte identity with the input or change the scientific meaning of its columns.
Arguments
Section titled “Arguments”data: Raw vector containing an Arrow IPC file or stream. Both input encodings are accepted by the native reader.
Returns
Section titled “Returns”A new raw vector containing an Arrow IPC file. The native buffer is copied and freed before returning.
Errors
Section titled “Errors”Non-raw data is rejected in R. Invalid or unsupported IPC, native allocation/conversion failures and library/ABI errors propagate.
export_ipc_stream
Section titled “export_ipc_stream”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”export_ipc_stream(data)Rewrite supported Arrow IPC input in portable stream format.
Stream schema metadata is carried in the leading message. Rewriting does not promise byte identity with the input or change the scientific meaning of its columns.
Arguments
Section titled “Arguments”data: Raw vector containing an Arrow IPC file or stream. Both input encodings are accepted by the native reader.
Returns
Section titled “Returns”A new raw vector containing an Arrow IPC stream. The native buffer is copied and freed before returning.
Errors
Section titled “Errors”Non-raw data is rejected in R. Invalid or unsupported IPC, native allocation/conversion failures and library/ABI errors propagate.
invoke_registered_extension
Section titled “invoke_registered_extension”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”invoke_registered_extension(callback, selection, payload)Resolve an extension, invoke a trusted R callback and validate its output.
The callback runs in the current R process with its normal permissions. Manifest and output validation do not sandbox it or prove scientific validity.
Arguments
Section titled “Arguments”callback: Trusted function called with the resolved manifest and payload. Its return value must satisfy the selected extension-point contract.selection: Named list passed to resolve_extension_manifest, including name, expected_version and extension_point.payload: Application value passed unchanged to callback; this wrapper does not serialize it before invocation.
Returns
Section titled “Returns”The validated native result without its outer envelope: a dataset artifact, resolved model aliases, a diagnostics summary or imported artifact result, according to the extension point.
Errors
Section titled “Errors”Native manifest/output validation errors and JSON/library failures propagate. Any callback error is raised unchanged.
kernel_aggregate_dates
Section titled “kernel_aggregate_dates”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_aggregate_dates(dates, values, frequency)Sum observations into calendar or earliest-sample weekly buckets.
Offset timestamps normalize to UTC. Weekly timestamp buckets span seven days from the earliest timestamp; other frequencies use the normalized date. Use kernel_call with aggregate_dates for optional fiscal_start_month controls.
Arguments
Section titled “Arguments”dates: Date, POSIXt or character vector aligned to values. POSIXt inputs format in UTC with six fractional-second digits; other inputs use as.character and must contain consistent ISO dates or timestamps.values: Aligned finite numeric values to sum; observations need not already be sorted.frequency: One of “D”, “W”, “M”, “ME”, “MS”, “QS”, “QE”, “YS” or “YE”. Quarter/year boundaries start in January in this wrapper.
Returns
Section titled “Returns”A list containing sorted dates labels and summed values. Weekly buckets start at the earliest observation and omit empty weeks; other frequencies fill intervening periods with zero. End variants label period ends.
Errors
Section titled “Errors”Misaligned arrays, malformed or mixed timestamp kinds, unsupported frequencies, nonfinite sums, date limits or more than 100000 output periods raise native errors. Conversion/library failures propagate.
kernel_call
Section titled “kernel_call”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_call(operation, model_key = NULL, payload = list(), raw = FALSE)Execute a schema-2.0 request in the native Rust kernel.
Requests are encoded with jsonlite using 17 digits for numeric values. R numeric precision already lost before encoding cannot be recovered; use kernel_call_json for exact existing JSON. Scientific computation and validation run in Rust with no Python fallback. JSON calls keep a loader reference for process-local registry state, copy response text into R, and release native response memory.
Time units, observation quantities and parameter domains follow the selected native operation. This wrapper does not sort arrays, convert dates to elapsed time, integrate interval counts or replace missing observations. Use \code{kernel_call_json} when an operation needs an exact JSON array shape outside the named fields preserved here.
Arguments
Section titled “Arguments”operation: Canonical native operation name, such as “discover_models” or “predict_model”.model_key: Native model key; NULL by default for operations without a selected model.payload: Operation-specific named list, defaulting to an empty JSON object. Known native array fields retain array shape even for a single element; scalar parameter fields remain scalars. NULL values are encoded as JSON null.raw: One non-missing logical value, FALSE by default. TRUE returns successful response JSON without replacing its original numeric tokens or array shapes.
Returns
Section titled “Returns”A complete native response as nested lists when raw is FALSE, or the original response string when TRUE. Arrays decode as lists and JSON null as NULL. Successful envelopes may omit error; non-null outer native errors are raised in either mode. Errors inside individual batch or scenario result rows remain available to inspect.
Errors
Section titled “Errors”Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate. An invalid raw flag is rejected by kernel_call_json.
kernel_call_json
Section titled “kernel_call_json”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_call_json(request, raw = FALSE)Send an existing JSON request without re-encoding its numbers or arrays.
Use this entry point for full-width integer identifiers or externally prepared schema arrays. Parsed R numeric values may round wide integers; raw=TRUE preserves their response tokens. INNOVATE_NATIVE_LIBRARY overrides the installed platform-specific library in the package lib directory.
This function passes the supplied request text to Rust without changing its schema, units, nulls or array shapes. It parses the response to inspect the outer error even in raw mode; raw mode preserves the returned text, not an unchecked success status.
Arguments
Section titled “Arguments”request: Single non-missing character string containing the full schema-2.0 envelope: schema_version, operation, optional model_key and payload.raw: Single non-missing logical value, FALSE by default. TRUE returns the original successful response string after native-error inspection.
Returns
Section titled “Returns”The parsed native envelope as nested lists, or its exact JSON string if raw is TRUE. Even raw responses are checked for a non-null outer native error before being returned. Per-item errors inside a successful batch or scenario result are retained.
Errors
Section titled “Errors”Invalid request/raw types, lengths or missing values are rejected before the native call. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_categorize_adopters
Section titled “kernel_categorize_adopters”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_categorize_adopters(time, rates)Assign historical categories from sample-weighted observation times.
Weighted time mean and standard deviation determine the five historical labels. Rates are not multiplied by time-step widths. This categorizes sampled times rather than individual people.
Arguments
Section titled “Arguments”time: Nonempty finite numeric vector in strictly increasing order and one consistent unit.rates: Aligned finite nonnegative weights with positive total mass. Signed net adoption rates cannot be used directly as these weights.
Returns
Section titled “Returns”A named list of time, adoption_rate and category arrays. Every time receives one label, including zero-weight samples; boundary ties use the earlier category.
Errors
Section titled “Errors”Empty or misaligned arrays, nonfinite values, non-increasing times, negative rates and zero total weight raise native errors. Serialization/library errors also propagate.
kernel_categorize_fitted_adopters
Section titled “kernel_categorize_fitted_adopters”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_categorize_fitted_adopters(model_key, payload)Predict a single native rate series and apply historical categories.
The helper flattens only one rate series. Multiseries outputs and negative substitution flows require an explicit scientific choice of admissible weights outside this function.
Arguments
Section titled “Arguments”model_key: Native model key whose prediction supplies one rate per observation time.payload: Prediction payload with inputs.time or inputs.t and parameters or retained state, as accepted by kernel_predict_model.
Returns
Section titled “Returns”The time, adoption_rate and category result list returned by kernel_categorize_adopters.
Errors
Section titled “Errors”An absent rates field or rows with other than one rate raise an R error. Prediction errors and the nonnegative/strict-time categorization validation propagate.
kernel_cumulative_sum
Section titled “kernel_cumulative_sum”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_cumulative_sum(values)Compute native cumulative totals in the supplied observation order.
This calls native preprocessing rather than R cumsum, and returns the decoder’s list representation of JSON arrays.
Arguments
Section titled “Arguments”values: Finite numeric vector without missing entries; no sorting, timestamp inference or imputation is performed.
Returns
Section titled “Returns”A list of numeric cumulative totals with the same length as values; an empty input yields an empty list.
Errors
Section titled “Errors”Nonnumeric/nonfinite samples or cumulative totals outside the finite numerical domain raise native errors. JSON/library failures propagate.
kernel_diagnose_model
Section titled “kernel_diagnose_model”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_diagnose_model(model_key, payload)Compute native diagnostics for observations and a supplied model state.
Interpret metrics with their sample and model assumptions. In-sample diagnostics alone do not establish out-of-sample calibration or causality.
Arguments
Section titled “Arguments”model_key: Native model identifier for the observed data and prediction state.payload: Model-specific named list containing observation inputs and the parameters or state needed for prediction and diagnostic comparison.
Returns
Section titled “Returns”The complete envelope with native diagnostic metrics and details in result; metric availability depends on the model.
Errors
Section titled “Errors”Misaligned observations, unsupported diagnostics, incompatible state and numerical-domain problems raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_discover_models
Section titled “kernel_discover_models”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_discover_models()Read the native model catalog and its capability metadata.
Use the advertised operation and variant capabilities before constructing a request. Presence in the catalog does not promise every simulation engine or constructor combination.
Returns
Section titled “Returns”The discovery result as a named list containing models; the outer response envelope is omitted.
Errors
Section titled “Errors”Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_fit_batch
Section titled “kernel_fit_batch”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_fit_batch(model_key, datasets, workers = 1L)Fit independent payloads and retain per-item failures.
Worker count controls concurrency, not the ordering or scientific interpretation of results.
Arguments
Section titled “Arguments”model_key: Native model identifier shared by every dataset.datasets: Ordered list of fit_model payloads, each containing its own inputs and fitting options or parameters/state. These are payloads, not full request envelopes.workers: Integer worker count from 1 through 32, default 1L. Parallel execution preserves input order.
Returns
Section titled “Returns”An ordered list of result/error records, one per dataset. Each item retains an individual native failure instead of raising it at the batch boundary.
Errors
Section titled “Errors”An invalid outer batch, model-key shape or worker count raises a native error. Serialization and library errors propagate; callers must inspect each returned item error.
kernel_fit_model
Section titled “kernel_fit_model”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_fit_model(model_key, payload)Fit a native model using observations and explicit fitting controls.
A successful request does not establish global optimality, parameter identifiability or forecast calibration. Inspect the native optimizer and diagnostic fields before interpreting the fit.
Time, observations and parameters must use consistent caller-selected units. Observations must represent the model’s fitted quantity; this wrapper does not integrate interval counts or difference cumulative totals before fitting.
Arguments
Section titled “Arguments”model_key: Native model key returned by kernel_discover_models, such as “logistic”.payload: Named list with inputs containing aligned time/t and observed/y arrays. Optional constructor_kwargs select a model variant and fit_options provide initial_parameters, weights and other supported controls. Multiseries layout is model-specific.
Returns
Section titled “Returns”The full native envelope as a list. Its result includes fitted parameters, reusable state and model-specific optimizer/diagnostic fields. Retain the complete state for forecasting.
Errors
Section titled “Errors”Invalid observation shapes, unsupported variants, numerical constraints and native fitting failures raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_paired_outcomes_ipc
Section titled “kernel_paired_outcomes_ipc”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_paired_outcomes_ipc(payload)Validate paired Bass trajectories and export their rows as Arrow IPC.
Use exact JSON for full-width draw IDs. When reading with Arrow R, keep the table in Arrow and cast draw_id to UTF-8 before conversion to ordinary R vectors if wide identifiers must be preserved. This validates an interchange contract, not model calibration.
Arguments
Section titled “Arguments”payload: Paired-outcome contract with strategies and aligned draws, supplied as a nested list or a single JSON string. Draws include identifiers and time/adoption arrays; singleton trajectory arrays in lists are preserved explicitly.
Returns
Section titled “Returns”A raw vector containing an Arrow IPC file with validated paired-outcome rows and native schema metadata.
Errors
Section titled “Errors”Native pairing, trajectory, value, identifier and output-allocation failures raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_predict_batch
Section titled “kernel_predict_batch”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_predict_batch(model_key, datasets, workers = 1L)Predict independent payloads and retain per-item failures.
Worker count controls concurrency, not the ordering or scientific interpretation of results.
Arguments
Section titled “Arguments”model_key: Native model identifier shared by every dataset.datasets: Ordered list of predict_model payloads, each containing its own inputs and fitting options or parameters/state. These are payloads, not full request envelopes.workers: Integer worker count from 1 through 32, default 1L. Parallel execution preserves input order.
Returns
Section titled “Returns”An ordered list of result/error records, one per dataset. Each item retains an individual native failure instead of raising it at the batch boundary.
Errors
Section titled “Errors”An invalid outer batch, model-key shape or worker count raises a native error. Serialization and library errors propagate; callers must inspect each returned item error.
kernel_predict_model
Section titled “kernel_predict_model”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_predict_model(model_key, payload)Predict native levels and rates from explicit parameters or fitted state.
Levels and rates have different meanings. Where the model returns derivatives, their units are level units per unit of numeric time. They are instantaneous values, not counts integrated between observation rows; signed rates can describe declining levels. Deterministic predictions do not provide calibrated intervals unless an appropriate separate inference operation supplies them.
Arguments
Section titled “Arguments”model_key: Native model identifier matching the supplied parameters or state.payload: Named list with inputs.time or inputs.t and either parameters plus optional constructor_kwargs, or retained fitted state. Include required model-specific covariates and prediction options.
Returns
Section titled “Returns”The full native envelope. The model-specific result may contain scalar values, multiseries rows, rates and state; JSON arrays remain nested lists in observation order.
Errors
Section titled “Errors”Unknown models, invalid grids, incompatible state/options, missing covariates and numerical-domain violations raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_rolling_average
Section titled “kernel_rolling_average”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_rolling_average(values, window)Compute native trailing means after a complete sample window exists.
The kernel uses guarded accumulation for finite values. The helper neither imputes missing samples nor constructs calendar windows.
Arguments
Section titled “Arguments”values: Finite numeric vector in observation order without missing values.window: Positive integer sample count per trailing window. A window longer than the series produces only unfilled positions.
Returns
Section titled “Returns”A list aligned with values: leading entries are NULL until window samples exist, followed by numeric complete-window means.
Errors
Section titled “Errors”Nonpositive/noninteger windows, invalid samples or nonfinite arithmetic raise native errors. JSON/library failures propagate.
kernel_sarima_fit
Section titled “kernel_sarima_fit”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_sarima_fit(values, order, seasonal_order = c(0L, 0L, 0L, 0L), historical = FALSE)Fit a no-intercept native SARIMA model and return in-sample fitted values.
Outside historical mode, leading missing fitted values reflect differencing warmup. A returned fit alone does not establish an adequate time-series model.
Arguments
Section titled “Arguments”values: Finite numeric vector without missing values on an ordered, evenly spaced grid. Timestamps are not checked by this wrapper.order: Length-three nonnegative integer vector c(p, d, q), within native order and sample-size limits.seasonal_order: Length-four nonnegative integer vector c(P, D, Q, period), default c(0L, 0L, 0L, 0L). Seasonal differencing requires a period of at least 2.historical: Logical control for historical diffuse-initialization predictions where supported; defaults to FALSE.
Returns
Section titled “Returns”A numeric vector aligned with values. Native null warmup positions become NA_real_; coefficients, future forecasts and prediction intervals are not returned.
Errors
Section titled “Errors”Invalid orders, insufficient samples, stationarity or estimation failures, invalid samples and conversion/library problems raise errors.
kernel_scenario_comparisons_ipc
Section titled “kernel_scenario_comparisons_ipc”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_scenario_comparisons_ipc(response)Encode ordered scenario comparison rows as an Arrow IPC file.
The bridge copies output bytes into R and frees native memory before returning. Passing a parsed list through jsonlite can alter singleton arrays or wide numeric identifiers; preserve exact JSON where those distinctions matter.
Arguments
Section titled “Arguments”response: Complete scenario-grid response as a nested list or one JSON string. Use existing JSON text when full-width integer identifiers must retain their exact tokens.
Returns
Section titled “Returns”A newly allocated raw vector containing a native Arrow IPC file. Rows retain their scenario comparison order; nested results and errors use the native JSON columns.
Errors
Section titled “Errors”Malformed responses, unsupported exports, native allocation failures and invalid scalar-string inputs raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_scenario_executions_ipc
Section titled “kernel_scenario_executions_ipc”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_scenario_executions_ipc(response)Encode ordered scenario execution rows as an Arrow IPC file.
The bridge copies output bytes into R and frees native memory before returning. Passing a parsed list through jsonlite can alter singleton arrays or wide numeric identifiers; preserve exact JSON where those distinctions matter.
Arguments
Section titled “Arguments”response: Complete scenario-grid response as a nested list or one JSON string. Use existing JSON text when full-width integer identifiers must retain their exact tokens.
Returns
Section titled “Returns”A newly allocated raw vector containing a native Arrow IPC file. Rows retain their scenario execution order; nested results and errors use the native JSON columns.
Errors
Section titled “Errors”Malformed responses, unsupported exports, native allocation failures and invalid scalar-string inputs raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_scenario_grid_ipc
Section titled “kernel_scenario_grid_ipc”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_scenario_grid_ipc(data, payload)Execute a scenario grid on a shared Arrow IPC time column.
The synchronous C call reads the supplied bytes; its JSON response is copied into R and native allocation is released. The helper returns structured JSON, not an Arrow R table.
Arguments
Section titled “Arguments”data: Raw vector containing an Arrow IPC file or stream with the required numeric time column.payload: Named list containing ordered scenarios and optional comparisons/execution controls, not a complete schema envelope. Wrap singleton numeric arrays in I() when their fields require JSON arrays; this entry point directly uses jsonlite auto-unboxing.
Returns
Section titled “Returns”The decoded native response envelope as nested lists, including ordered execution rows and any requested comparisons/artifacts. Individual scenario failures remain in their rows; outer errors are raised.
Errors
Section titled “Errors”The native bridge rejects non-raw input, invalid IPC or grid requests. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_seasonal_decomposition
Section titled “kernel_seasonal_decomposition”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_seasonal_decomposition(values, period, trend_span = NULL, robust = FALSE, historical = FALSE, inner_iterations = 5L, outer_iterations = if (isTRUE(robust)) 5L else 0L, seasonal_span = NULL, low_pass_span = NULL, seasonal_degree = 1L, seasonal_jump = 1L, trend_degree = 1L, trend_jump = 1L, low_pass_degree = 1L, low_pass_jump = 1L)Decompose an evenly spaced series into native trend, seasonal and residual components.
A decomposition is not a future forecast or a calibrated uncertainty estimate.
Arguments
Section titled “Arguments”values: Finite numeric vector without missing values, in evenly spaced sample order. The caller must establish spacing because no timestamps are supplied.period: Integer samples per cycle, at least 2, with at least three complete cycles available.trend_span: Trend smoothing span, NULL by default. A numeric span is required unless historical=TRUE, which derives an odd span from period and seasonal span; native span bounds apply.robust: Logical residual-reweighting control; defaults to FALSE.historical: Logical switch for historical STL smoothing/reweighting rules; defaults to FALSE.inner_iterations: Integer inner smoothing passes from 1 through 100, default 5L.outer_iterations: Integer reweighting passes from 0 through 100; default 5L when isTRUE(robust), otherwise 0L. Positive counts require robust=TRUE.seasonal_span: Optional odd seasonal smoothing span of at least 3. NULL selects the native default: 7 in historical mode or at most 7 samples per phase otherwise.low_pass_span: Optional odd low-pass span of at least 3. NULL selects the smallest odd integer strictly above period.seasonal_degree: Seasonal local polynomial degree, 0L or 1L; defaults to 1L.seasonal_jump: Positive integer spacing of seasonal fitted points; defaults to 1L.trend_degree: Trend local polynomial degree, 0L or 1L; defaults to 1L.trend_jump: Positive integer spacing of trend fitted points; defaults to 1L.low_pass_degree: Low-pass local polynomial degree, 0L or 1L; defaults to 1L.low_pass_jump: Positive integer spacing of low-pass fitted points; defaults to 1L.
Returns
Section titled “Returns”A named list with trend, seasonal and residual arrays aligned with the input. The arrays retain JSON-list representation; no data frame is constructed.
Errors
Section titled “Errors”Too few cycles, invalid span/iteration/degree/jump controls, invalid samples and nonfinite estimates raise native errors. JSON/library failures propagate.
kernel_simulate_model
Section titled “kernel_simulate_model”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_simulate_model(model_key, payload)Run a native stochastic model with an explicit simulation engine.
Retain engine metadata, seed and inputs when recording an experiment. Replay is qualified for a runtime and configuration; this helper does not guarantee cross-version identity or empirical adequacy.
Arguments
Section titled “Arguments”model_key: Native model key that supports the selected simulation engine.payload: Named list containing inputs, parameters and simulation_options such as engine, seed, population, network structure and timed events; constructor_kwargs are model-specific.
Returns
Section titled “Returns”The complete native envelope with engine-specific trajectories and metadata. Count-based engines may return both integer counts and scaled values.
Errors
Section titled “Errors”Unsupported engines or model/engine combinations, invalid seeds/populations/events and numerical limits raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.
kernel_summarize_model
Section titled “kernel_summarize_model”View source · Source file SHA-256: 45d365fff417f0e09ae809598c1b38dbba5e4ab5cd4f9dce7b900a4910fbdb77
Signature
Section titled “Signature”kernel_summarize_model(model_key, payload)Request a model-specific native analytical or numerical summary.
Summary quantities inherit the model assumptions and supplied units; availability is not evidence of causal or forecast validity.
Arguments
Section titled “Arguments”model_key: Native model identifier defining the supported summary contract.payload: Named list of parameters or retained state and any model-specific constructor, threshold or time-grid inputs required by the summary.
Returns
Section titled “Returns”The complete response envelope with model-specific summary fields in result. The wrapper does not coerce distinct models into a common table.
Errors
Section titled “Errors”Unsupported summaries, missing inputs, incompatible state and numerical-domain violations raise errors. Native errors raise R conditions; dataset errors with validation details have class innovate_dataset_validation_error and carry code and validation. JSON conversion, library loading and ABI errors propagate.