@statsim/engine
v0.1.0
Published
StatSim execution engine — orchestrates stoch + jsee for running compiled models
Downloads
110
Maintainers
Readme
@statsim/engine
StatSim execution engine — orchestrates stoch + jsee for running compiled models.
Install
npm install @statsim/engineUsage
For now, this is a simple wrapper around stoch. Future versions will add:
- Model compilation caching
- Integration with
@statsim/compiler - Model loading/execution orchestration
import * as engine from '@statsim/engine'
import { Normal, sample } from '@statsim/engine'
// Use stoch functionality directly
const dist = new Normal(0, 1)
const samples = await sample(dist, 1000)Future API
import { compileAndRun } from '@statsim/engine'
// Compile .sm model and run inference
const result = await compileAndRun('model.sm', {
backend: 'stoch',
cache: true
})