日期:2014-05-18 浏览次数:20838 次
Dim p As New fitfunc.FitfunClass() Dim x As Double() = New Double(2) {1, 2, 1} Dim y As Double() = New Double(2) {2, 5, -1} Dim z As Double() = New Double(2) {10, 20, 3} Dim x1 As New MWNumericArray(3, 1, x) Dim y1 As New MWNumericArray(3, 1, y) Dim z1 As New MWNumericArray(3, 1, z) Dim output As MWArray() = New MWArray(1) {} output = p.createFit(2, x1, y1, z1) Dim pp As MWNumericArray = DirectCast(output(0), MWNumericArray) Dim fl As MWNumericArray = DirectCast(output(1), MWNumericArray) Dim ppc As Double(,) = DirectCast(pp.ToArray(), Double(,)) Dim flc As Double(,) = DirectCast(fl.ToArray(), Double(,))