Hi,
I'm trying to calculate the deviation from an array. Something like
var u_max = []
for(var idx = 0; wait(1) && idx < samples; idx++){
const frequ = Scope.Channel1.measure("Frequency");
u_max[idx] = Scope.Channel1.measure("Maximum");
Scope.wait();
}
const u_max_mean = u_max.reduce((a, b) => a + b, 0) / u_max.length;
But I get a parse exception
Uncaught exception at <anonymous script, id=1898586689712>:48: SyntaxError: Parse error
48 const u_max_mean = u_max.reduce((a, b) => a + b, 0) / u_max.length;
Is array.reduce not available in the WaveForms inbuild scripting engine?