Forums > Javascript

jit.3m within javascript?



bd
December 16, 2009 | 7:14 pm

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

December 16, 2009 | 10:06 pm

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
December 17, 2009 | 12:33 am

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

April 17, 2015 | 11:17 am

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

Viewing 4 posts - 1 through 4 (of 4 total)

Forums > Javascript