ee.ut.mrz.volumest
Class Calculations

java.lang.Object
  extended by ee.ut.mrz.volumest.Calculations

public class Calculations
extends Object

Does "businesslogic" calculations. Has algorithms for area, volume and Coefficent of Error calculations.

Author:
Markko Merzin, markko.merzin@ut.ee

Constructor Summary
Calculations()
           
 
Method Summary
static double getGridArea(int activePointsCount)
          Returns selected area of single grid.
static double getIrregularObjectCE(int[] grids, int wholeObjectIntersections)
          Returns coefficent of error assuming object is irreguler shape.
static double getObjectVolume(int[] grids)
          Returns object volume.
static double getRegularObjectCE(int[] grids, int wholeObjectIntersections)
          Returns coefficent of error assuming object is regular shaped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Calculations

public Calculations()
Method Detail

getGridArea

public static double getGridArea(int activePointsCount)
Returns selected area of single grid.


getObjectVolume

public static double getObjectVolume(int[] grids)
Returns object volume.


getRegularObjectCE

public static double getRegularObjectCE(int[] grids,
                                        int wholeObjectIntersections)
Returns coefficent of error assuming object is regular shaped.


getIrregularObjectCE

public static double getIrregularObjectCE(int[] grids,
                                          int wholeObjectIntersections)
Returns coefficent of error assuming object is irreguler shape.