private void joinMetrics(Patch_ShapeMetrics_V metrics) { //Por último, obtenemos un arraylist donde añadimos todos los objetos for (int i = 0; i < metrics.PatchNames.Count; i++) { Obj_Patch_ShapeMetrics metricsObj = new Obj_Patch_ShapeMetrics ((string)metrics.PatchNames[i], (double)metrics.PatchesPerimeterAreaRatio[i], (double)metrics.PatchesFractalDimension[i]); _patchesAndMetrics.Add(metricsObj); } }
/// <summary> /// Lists Shape metrics at the patch level /// </summary> /// <param name="metrics">The object whose metrics we want to list</param> public List_Patch_ShapeMetrics(Patch_ShapeMetrics_V metrics) { this.joinMetrics(metrics); }