org.opensha.nshmp.sha.calc
Class SpectrumCalculator

java.lang.Object
  extended by org.opensha.nshmp.sha.calc.SpectrumCalculator
Direct Known Subclasses:
UHS_SpectrumCalculator

public class SpectrumCalculator
extends Object

Title: SpectrumCalculator

Description:

Version:
1.0
Author:
Ned Field,Nitin Gupta, E.V.Leyendecker

Field Summary
protected  ArbitrarilyDiscretizedFunc saSdfunction
           
protected  ArbitrarilyDiscretizedFunc saTfunction
           
 
Constructor Summary
SpectrumCalculator()
           
 
Method Summary
protected  XY_DataSetList approxSaSd(double periodVal, double sAccerlation, double sVelocity, double sPGA)
           
 XY_DataSetList calculateMapSpectrum(ArbitrarilyDiscretizedFunc saVals)
           
 XY_DataSetList calculateSDSpectrum(ArbitrarilyDiscretizedFunc saVals, float fa, float fv, String siteClass, String edition)
           
 XY_DataSetList calculateSMSpectrum(ArbitrarilyDiscretizedFunc saVals, float fa, float fv, String siteClass, String edition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

saSdfunction

protected ArbitrarilyDiscretizedFunc saSdfunction

saTfunction

protected ArbitrarilyDiscretizedFunc saTfunction
Constructor Detail

SpectrumCalculator

public SpectrumCalculator()
Method Detail

approxSaSd

protected XY_DataSetList approxSaSd(double periodVal,
                                    double sAccerlation,
                                    double sVelocity,
                                    double sPGA)
Parameters:
periodVal - double
sPGA - double
sAccerlation - double
fa - float
fv - float
Returns:
DiscretizedFuncList

calculateMapSpectrum

public XY_DataSetList calculateMapSpectrum(ArbitrarilyDiscretizedFunc saVals)
Parameters:
saVals - ArbitrarilyDiscretizedFunc
Returns:
DiscretizedFuncList

calculateSMSpectrum

public XY_DataSetList calculateSMSpectrum(ArbitrarilyDiscretizedFunc saVals,
                                          float fa,
                                          float fv,
                                          String siteClass,
                                          String edition)
Parameters:
saVals - ArbitrarilyDiscretizedFunc
fa - float
fv - float
Returns:
DiscretizedFuncList

calculateSDSpectrum

public XY_DataSetList calculateSDSpectrum(ArbitrarilyDiscretizedFunc saVals,
                                          float fa,
                                          float fv,
                                          String siteClass,
                                          String edition)
Parameters:
saVals - ArbitrarilyDiscretizedFunc
fa - float
fv - float
Returns:
DiscretizedFuncList