public static HyperCubeInterop ToDataFrame(IHyperCube <double> paramSet) { var names = paramSet.GetVariableNames(); var r = new HyperCubeInterop(names.Length); for (int i = 0; i < names.Length; i++) { var name = names[i]; r.Name[i] = name; r.Description[i] = ""; r.Value[i] = paramSet.GetValue(name); r.Min[i] = paramSet.GetMinValue(name); r.Max[i] = paramSet.GetMaxValue(name); } return(r); }
public static HyperCubeInterop ToDataFrame(IHyperCube<double> paramSet) { var names = paramSet.GetVariableNames(); var r = new HyperCubeInterop(names.Length); for (int i = 0; i < names.Length; i++) { var name = names[i]; r.Name[i] = name; r.Description[i] = ""; r.Value[i] = paramSet.GetValue(name); r.Min[i] = paramSet.GetMinValue(name); r.Max[i] = paramSet.GetMaxValue(name); } return r; }