org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data
Class SegRateConstraint

java.lang.Object
  extended by org.opensha.sha.earthquake.rupForecastImpl.WGCEP_UCERF_2_Final.data.SegRateConstraint
All Implemented Interfaces:
Serializable

public class SegRateConstraint
extends Object
implements Serializable

This class is used to save the segment Rates for the faults

Author:
vipingupta
See Also:
Serialized Form

Constructor Summary
SegRateConstraint(String faultName)
          Save the faultName
 
Method Summary
 String getFaultName()
          Get the fault name
 double getLower95Conf()
           
 double getMean()
          Get mean Segment rate
 int getSegIndex()
          Get the segment index
 double getStdDevOfMean()
          Get StdDev to mean for the rate
 double getUpper95Conf()
           
static SegRateConstraint getWeightMean(ArrayList<SegRateConstraint> segRateConstraintList)
          Get the weight mean and Std Dev Note: Lower and upper 95 not weight averaged, they are just set NaN
 void setLower95Conf(double lower95Conf)
           
 void setSegRate(int segIndex, double meanRate, double stdDevtoMean, double lower95Conf, double upper95Conf)
          Set the segment rate
 void setUpper95Conf(double upper95Conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SegRateConstraint

public SegRateConstraint(String faultName)
Save the faultName

Parameters:
faultName -
Method Detail

getFaultName

public String getFaultName()
Get the fault name

Returns:

setSegRate

public void setSegRate(int segIndex,
                       double meanRate,
                       double stdDevtoMean,
                       double lower95Conf,
                       double upper95Conf)
Set the segment rate

Parameters:
segIndex -
meanRate -
stdDevtoMean -

getSegIndex

public int getSegIndex()
Get the segment index

Returns:

getMean

public double getMean()
Get mean Segment rate

Returns:

getStdDevOfMean

public double getStdDevOfMean()
Get StdDev to mean for the rate

Returns:

getWeightMean

public static SegRateConstraint getWeightMean(ArrayList<SegRateConstraint> segRateConstraintList)
Get the weight mean and Std Dev Note: Lower and upper 95 not weight averaged, they are just set NaN

Parameters:
mean1 -
mean2 -
sigma1 -
sigma2 -
Returns:

getLower95Conf

public double getLower95Conf()

setLower95Conf

public void setLower95Conf(double lower95Conf)

getUpper95Conf

public double getUpper95Conf()

setUpper95Conf

public void setUpper95Conf(double upper95Conf)