Runs the CI test and returns the result as a JS value.
Pass an empty Float64Array for z_flat to run unconditionally. When boolean is true, returns an independence verdict instead of the raw p-value and correlation.
Float64Array
z_flat
boolean
true
boolean=true
[p_value, coefficient]
boolean=false
Returns a JsValue error if:
JsValue
Runs the CI test and returns the result as a JS value.
Pass an empty
Float64Arrayforz_flatto run unconditionally. Whenbooleanistrue, returns an independence verdict instead of the raw p-value and correlation.Returns
booleanifboolean=true[p_value, coefficient]ifboolean=falseErrors
Returns a
JsValueerror if: