Hello,
I am trying to get a function to return a standard deviation calculation stored inside an associative array, my code will only return the expression of the associative array and not the calculation. would you please tell me what is wrong with my code.
cvf= Max(replist);// my cvf in the file is 8
cv=Associative Array();
cv[6]=Associative Array({(Std Dev(5,6,7,8,9,10))});
cv[8]=Associative Array ({(Std Dev(5,6,7,8,9,10,11,12))});
cv[12]=Associative Array ({(Std Dev(5,6,7,8,9,10,11,12,13,14,15,16))});
CVC = Function({ref},Local ({cv = Associative Array({cvf, Eval(cvf)} )},cv << get values(cvf));cv[ref]););
a=CVC(cvf);
eval(eval expr(a));
Show(a);
this is the output that I get:
a = Associative Array({{Std Dev( 5, 6, 7, 8, 9, 10, 11, 12 ), 1}}, 0);
this is the output that I want: a= 2.5