Commits

myuhe  committed 6d8c679

樹高を表わす変数をリネーム

  • Participants
  • Parent commits 9f186f7

Comments (0)

Files changed (2)

File build/built-jar.properties

-#Fri, 30 Mar 2012 10:37:27 +0900
+#Fri, 30 Mar 2012 11:52:53 +0900
 
 
 D\:\\yamamon=

File src/YaMaMon/VolumeGraph.java

         double dbh = metaforest.getDbh();
         double height = metaforest.getHeight();
         double density = metaforest.getDensity();
-        double estHeight;
+      //  double height;
         double estVolume;
         Integer[] ageArray = metaforest.getAgeArray();
         Integer[] ratioArray = metaforest.getratioArray();
                 }
             }
             
-            estHeight = paramA * Math.pow((1 - exp(paramB * incAge)), paramC);
+            height = paramA * Math.pow((1 - exp(paramB * incAge)), paramC);
             
             Ry =(0.068509 
-                    * Math.pow(estHeight,-1.347464)
-                    + 2658.2 * Math.pow(estHeight, -2.814651)
-                    / Math.pow(10, 5.3083) * Math.pow(estHeight, -1.4672))
-                    / (0.068509 * Math.pow(estHeight, -1.347464) + 2658.2
-                    * Math.pow(estHeight, -2.814651) / density);
+                    * Math.pow(height,-1.347464)
+                    + 2658.2 * Math.pow(height, -2.814651)
+                    / Math.pow(10, 5.3083) * Math.pow(height, -1.4672))
+                    / (0.068509 * Math.pow(height, -1.347464) + 2658.2
+                    * Math.pow(height, -2.814651) / density);
             
             estVolume = density 
                     * Math.pow(10d, (-4.203818 + 1.819629 * Math.log10(dbh)
-                    + 1.025738 * Math.log10(estHeight)));
+                    + 1.025738 * Math.log10(height)));
         
 
             System.out.println("収量比数: " + Ry);
                     + 2.8 * (4.8042 - Math.log10(density)
                     - 1.3136 * Math.log10(dbh)));
           //  System.out.println(estVolume);
-          //  System.out.println(estHeight);
+          //  System.out.println(height);
            // System.out.println(dbh);        
         }