Initialization
Before using any functions from @stats/core, you must initialize the library. This is because it uses WebAssembly under the hood, which needs to be loaded and initialized.
init()
The init function initializes the WebAssembly module. It is SIMD-aware and will automatically use SIMD if supported by the environment.
Usage
javascript
import { init } from '@addmaple/stats';
await init();
// Now you can use other functionsExample
Try it out
Initializing library...