vexstride

    Reproducible Morris screening and external-model result exchange

    sensitivity
    morris
    numerical-models
    Download zip
    Author
    Version
    0.1.0
    License
    Apache-2.0
    Last updated
    1 hour ago
    Downloads
    3

    #Library quick start

    This example calls the public facade from a separate package scope.

    ///|
    test "screen a signed linear model" {
    let study : @vexstride.Study = {
    factors: [
    { id: "x", name: "First input", unit: "", lower: 0.0, upper: 1.0, },
    { id: "y", name: "Second input", unit: "", lower: 0.0, upper: 1.0, },
    ],
    levels: 4,
    trajectories: 16,
    seed: 17,
    }
    let plan = @vexstride.generate(study)
    let outputs = @vexstride.evaluate(plan, x => 2.0 * x[0] - 5.0 * x[1])
    let report = @vexstride.analyze(plan, outputs)
    assert_true(report.metrics[0].mu_star.is_close(2.0))
    assert_true(report.metrics[1].mu.is_close(-5.0))
    assert_eq(@vexstride.missing(plan, outputs), [])
    }

    Factor

    A continuous parameter. Bounds define the scope of the sensitivity study.

    Metric

    Effects are per unit normalized parameter movement, in output units.

    Observation

    Plan

    Plans are validated against the generator before analysis or exchange.

    Problem

    Run

    A row carries a stable trajectory/step identity and both coordinate systems.

    Study

    Version 1 uses independent, uniformly explored continuous inputs.

    analyze

    Complete-trajectory bootstrap with percentile 95% intervals. Resampling indices are shared across factors, preserving paired evidence.

    evaluate

    Run an in-process model; non-finite outputs are rejected immediately.

    generate

    Generate r independent Morris trajectories, each with d+1 evaluations. The normalized step is levels / (2 * (levels - 1)).

    html

    Self-contained report; no network requests, embedded scripts or fonts.

    inputs_csv

    Parameter IDs, not human labels, form the model input header.

    merge

    Merge partial batches, rejecting repeated, unknown or foreign run IDs. Returned observations always follow plan order, regardless of arrival order.

    missing

    Missing rows are explicit; incomplete trajectories are never imputed.

    parse_results

    Parsing and semantic validation are separate: use trails.merge for identity checks.

    plan_from_json

    plan_to_json

    study_from_json

    validate

    Reject forged/stale plans, changed coordinates and unsupported schemas.

    Source Files