% Example program for making Target diagrams

clear
data(:,1)=  [1 2 3 4]';   % Data
models(:,1)=[2 3 4 5]'; % Model #1 - biased only
models(:,2)=[3 2 3 2]'; % Model #2 - no bias, less variance than data
models(:,3)=[0 2 3 5]'; % Model #3 - no bias, more variance than data

[bias,rmsd,urmsd,data_std]=target(data,models);

clear
data(:,1)=  [1 1 1 1]';   % Data - no variance
models(:,1)=[0 1 2 3]'; % Model #1 
models(:,2)=[0 0 0 0]'; % Model #2 - bias, no variance
models(:,3)=[0 1 0 1]'; % Model #3 

[bias,rmsd,urmsd,data_std]=target(data,models);
