jit.3m within javascript?

bd's icon

Is it possible to use jit.3m within javascript? Can't find anything in the docs, but I am assuming not, given Luke's stat functions in the example file, 'jstable.js'....

Thanks,
bd

Joshua Kit Clayton's icon

If you notice in the jit.3m reference page, there are three gettable attributes: min, mean, max. Call matrixcalc method on the jit.3m object and then get the value you need. Something along the lines of:

var op3m = new JitterObject("jit.3m");

op3m.matrixcalc(inmat,null);

var themean = op3m.mean;

bd's icon

Hi Joshua

I see... I'm using max 4.6/jitter 1.6 and had searched in the local html docs, which don't have these params listed. Just found the new docs online.

Hope this works in 4.6/1.6. Will test this evening.

Thanks again,
bd

mmwwcycling74's icon

Hi there,

I don't know how it works for BD, but null in the example make an error.
I use:
op3m.matrixcalc(inmat,inmat);

and it's OK.

m