From 026a3f589fdb1c55a2fdd803d3a651ee05d43d08 Mon Sep 17 00:00:00 2001 From: Renken Date: Fri, 21 Feb 2020 08:42:07 +0100 Subject: [PATCH] updated TestCREClass --- TestCREClass.m | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/TestCREClass.m b/TestCREClass.m index 2a2f0bd..24e50c8 100644 --- a/TestCREClass.m +++ b/TestCREClass.m @@ -21,8 +21,15 @@ S.UseHistProxy=false; S.Calc; S %% Test CCRE class -CS=CCREClass; -CS.Data=randn(100,1); -CS.nBin=10; -CS.DataRef=randn(100,1); -CS.nBinRef=10; \ No newline at end of file +figure(1);clf;hold on +A=randn(10); +B=randn(10); +for k=-1:0.1:1 + CS=CCREClass; + CS.Data=(1-abs(k))*A+k*B; + CS.nBin=100; + CS.DataRef=B; + CS.nBinRef=50; + CS.Calc; + plot(k,CS.CCRE,'o') +end \ No newline at end of file