C# create Unc.ComplexUncNumber

25 views
Skip to first unread message

sle...@gmail.com

unread,
Mar 19, 2025, 11:03:57 AMMar 19
to VNA Tools
Hi,

I would like to create an Unc.ComplexUncNumber variable for double real, imag varible and they are uncertainty varible double,with covariance matrix in C#.
I tried a lot of syntax, but none of tem worked.

Number[][] input_covar = new Number[][]
         { new Number[] { uRealGen * uRealGen, 0},
          new Number[] { 0, uImagGen * uImagGen}};
var Cgen = new System.Numerics.Complex(RealGen, ImagGen);
var Sgen = Unc.ComplexUncNumber(Cgen, input_covar);

Can you help me what is the exact syntax?

Regards
László

Michael Wollensack METAS

unread,
Mar 19, 2025, 11:20:50 AMMar 19
to VNA Tools
var Cgen = new Complex<Number>(RealGen, ImagGen);
var Sgen = Unc.ComplexUncNumber(Cgen, input_covar, 0);

sle...@gmail.com

unread,
Mar 19, 2025, 11:27:25 AMMar 19
to VNA Tools
Thank Michel.

Regards
László
Reply all
Reply to author
Forward
0 new messages