CRE_RB_and_CCRE/TestCREClass.m

28 lines
405 B
Mathematica
Raw Normal View History

2019-04-04 08:35:34 +02:00
S=CREClass;
2020-02-20 18:14:55 +01:00
S.Data=randn(100,1);
2019-04-04 08:35:34 +02:00
S.nBin=(1000);
%% use histogram
S.UseHistProxy=true;
S.Calc;
S
%% Use my aproximation
S.UseHistProxy=false;
S.Calc;
S
std(S.Data)
%% multiply S
S.Data=100*S.Data;
S.UseHistProxy=true;
2020-02-20 18:14:55 +01:00
S.Calc;
2019-04-04 08:35:34 +02:00
S
std(S.Data)
%% ones again the "new" way
S.UseHistProxy=false;
2020-02-20 18:14:55 +01:00
S.Calc;
S
%% Test CCRE class
CS=CCREClass;
CS.Data=randn(100,1);
CS.nBin=10;
CS.DataRef=randn(100,1);
CS.nBinRef=10;