uaa.feral.physical.behaviors
Class VolumeEstimatorModel

java.lang.Object
  extended by uaa.feral.physical.behaviors.EvolveHydrology
      extended by uaa.feral.physical.behaviors.VolumeEstimatorModel
All Implemented Interfaces:
HydroBehavior

public class VolumeEstimatorModel
extends EvolveHydrology

Model to use Markov Chain Monte Carlo Method (Metropolis-Hastings algorithm)

Author:
Mark Altaweel

Constructor Summary
VolumeEstimatorModel()
           
VolumeEstimatorModel(java.lang.String test)
           
 
Method Summary
 double[] divideMonthlyInfo(java.util.Map<java.lang.Integer,double[]> sample)
           
 double[] estimateDischargeValue(double[] currentMonthData)
           
 double[] metrop(int np, double alphap, double[] vec, double mean)
           
 double refactorResults(java.util.Map<java.lang.Integer,double[]> sample, double[] currentMonthData)
           
 void runModel()
          Method to run the model
 void setDischargeInfo(java.lang.String riverN, int month, java.util.Map<java.lang.Integer,double[]> sample)
          Setter for monthly discharge data
 
Methods inherited from class uaa.feral.physical.behaviors.EvolveHydrology
CreateHydroModel, getDegradeAmount, getName, getScenarioData, getWaterBodyData, getWaterQuantityByBody, isDegradeQuantity, setData, setDegradeAmount, setDegradeQuantity, setScenarioData, setTickReset, setupModelData
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VolumeEstimatorModel

public VolumeEstimatorModel(java.lang.String test)

VolumeEstimatorModel

public VolumeEstimatorModel()
Method Detail

setDischargeInfo

public void setDischargeInfo(java.lang.String riverN,
                             int month,
                             java.util.Map<java.lang.Integer,double[]> sample)
Description copied from interface: HydroBehavior
Setter for monthly discharge data

month - the time data is saved for (e.g. month, day, etc.)
sample - the discharge data associated with the month

divideMonthlyInfo

public double[] divideMonthlyInfo(java.util.Map<java.lang.Integer,double[]> sample)

estimateDischargeValue

public double[] estimateDischargeValue(double[] currentMonthData)

metrop

public double[] metrop(int np,
                       double alphap,
                       double[] vec,
                       double mean)

runModel

public void runModel()
Description copied from interface: HydroBehavior
Method to run the model

Specified by:
runModel in interface HydroBehavior
Overrides:
runModel in class EvolveHydrology

refactorResults

public double refactorResults(java.util.Map<java.lang.Integer,double[]> sample,
                              double[] currentMonthData)