How to access the first value from an object in C#3.0

Posted by Newbie on Stack Overflow See other posts from Stack Overflow or by Newbie
Published on 2010-04-24T07:55:45Z Indexed on 2010/04/24 8:03 UTC
Read the original article Hit count: 126

Filed under:

How can I access the first value from

object t = (object) wsf.LinEst(y.ToArray(), x.ToArray(), false, true);

The output is

object[1..5, 1..2]}
    [1, 1]: 0.17134831460674155
    [1, 2]: 0.0
    [2, 1]: 0.019612696690686725
    [2, 2]: -2146826246
    [3, 1]: 0.95020429009193053
    [3, 2]: 0.82746057986828336
    [4, 1]: 76.328205128205056
    [4, 2]: 4.0
    [5, 1]: 52.261235955056179
    [5, 2]: 2.7387640449438226

I need to get only [1,1] 's value i.e. 0.17134831460674155

How to get that.

The linEst return an object only.

I am using C#3.0

Thanks

Thanks

© Stack Overflow or respective owner

Related posts about c#3.0