public static ValueMatrixInt GenerateValueMatrixIntNoInitial(TrueFalseMatrix tfMatrix, string filepath, string relativePath) { ValueMatrixInt num = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = num; num.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); num.SetValue(-2147483648, -2147483648, -2147483648); return num; }
public static ValueMatrixInt GenerateValueMatrixInt(TrueFalseMatrix tfMatrix, string filepath, string relativePath) { ValueMatrixInt vmi = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = vmi; vmi.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); vmi.SetValue(-2147483648, -2147483648, -2147483648); InitialValueMatrix(tfMatrix, -2147483648, -2147483648, vmi); return vmi; }
public static ValueMatrixInt GenerateValueMatrixIntNoInitial(TrueFalseMatrix tfMatrix, string filepath, PredictionStudyType st, string relativePath) { short num; short num2; short num3; DefaultValueDefine.GetShortResult(st, out num3, out num2, out num); ValueMatrixInt num4 = new ValueMatrixInt(filepath, relativePath, tfMatrix.RowCount, tfMatrix.ColCount); m_IntMatrix = num4; num4.SetParam(tfMatrix.NorthWestX, tfMatrix.NorthWestY, tfMatrix.Resolution); num4.SetValue(num, num2, num3); return num4; }
private void AddDataIntoContext(Context context) { string absolutePath = ResultFilePath.CreateFilePath(m_ProjectManager.CurrentProjectLossPath, m_tdPreGroup.Name, m_tdPreGroup.Region.Name, ContextKeys.HSUPAPeakThroughPut); string relativePath = ResultFilePath.CreateRelativePath(m_tdPreGroup.Name, m_tdPreGroup.Region.Name, ContextKeys.HSUPAPeakThroughPut); m_HSUPAPeakThroughPutMatrix = new ValueMatrixInt(absolutePath, relativePath, m_tFMatrix.RowCount, m_tFMatrix.ColCount); m_HSUPAPeakThroughPutMatrix.SetParam(m_tFMatrix.NorthWestX, m_tFMatrix.NorthWestY, m_tFMatrix.Resolution); m_HSUPAPeakThroughPutMatrix.SetValue(int.MinValue, int.MinValue, int.MinValue); // ShortResultStruct srs = ShortResultStruct.DefaultMin; //m_HSUPAPeakThroughPutMatrix = ValueMatrixAssist.GenerateByTrueFalseMatrix(m_tFMatrix, absolutePath, relativePath, srs); context.Add(ContextKeys.HSUPAPeakThroughPut, m_HSUPAPeakThroughPutMatrix); }
/// <summary> /// 初始话指标保存路径,初始化界面参数 /// </summary> /// <param name="group"></param> /// <param name="tFMatrix"></param> private void InitData(TDPredictionGroup group, TrueFalseMatrix tFMatrix) { string absolutePath = ResultFilePath.CreateFilePath(m_ProjectManager.CurrentProjectLossPath, group.Name, group.Region.Name, TDPredictionStudyType.HSDPA_Peak_Throughput.ToString()); string relativePath = ResultFilePath.CreateRelativePath(group.Name, group.Region.Name, TDPredictionStudyType.HSDPA_Peak_Throughput.ToString()); m_DLPeakThrougput = new ValueMatrixInt(absolutePath, relativePath, m_TFMatrix.RowCount, m_TFMatrix.ColCount); m_DLPeakThrougput.SetParam(m_TFMatrix.NorthWestX, m_TFMatrix.NorthWestY, m_TFMatrix.Resolution); m_DLPeakThrougput.SetValue(int.MinValue, int.MinValue, int.MinValue); }