If you are attempting to calculate the Coefficient of Variation for each row, it would be:
names default to here(1);
dt=
New Table( "example",
Add Rows( 7 ),
New Column( "first",
Numeric,
Set Values(
[2.4507119999999998, 1.267139, 2053.4589999999998, 1.752283, 1.108177,
1.2322379999999999, 2.4711460000000001]
)
),
New Column( "second",
Numeric,
Set Values(
[2.441128, 1.258429, 2062.3409999999999, 1.7619819999999999,
1.1137779999999999, 1.225236, 2.4654440000000002]
)
),
New Column( "third",
Numeric,
Set Values(
[2.4306739999999998, 1.260132, 2067.8389999999999, 1.763598, 1.115453,
1.2322379999999999, 2.4567939999999999]
)
)
);
dt << new column("CV", formula( stddev(:first,:second,:third)/mean(:first,:second,:third)));
If you want to calculate the STD for the complete data table matrix it would be
names default to here(1);
dt=
New Table( "example",
Add Rows( 7 ),
New Column( "first",
Numeric,
Set Values(
[2.4507119999999998, 1.267139, 2053.4589999999998, 1.752283, 1.108177,
1.2322379999999999, 2.4711460000000001]
)
),
New Column( "second",
Numeric,
Set Values(
[2.441128, 1.258429, 2062.3409999999999, 1.7619819999999999,
1.1137779999999999, 1.225236, 2.4654440000000002]
)
),
New Column( "third",
Numeric,
Set Values(
[2.4306739999999998, 1.260132, 2067.8389999999999, 1.763598, 1.115453,
1.2322379999999999, 2.4567939999999999]
)
)
);
totalSTD = stddev(dt[0,0]);
show(totalSTD);
)
Jim