Documentation
¶
Index ¶
- func Aggregated_StageDamage(hps []hazardproviders.HazardProvider, sp consequences.StreamProvider, ...)
- func ComputeEAD(damages []float64, freq []float64) float64
- func ComputeSpecialEAD(damages []float64, freq []float64) float64
- func StreamAbstract(hp hazardproviders.HazardProvider, sp consequences.StreamProvider, ...)
- func StreamAbstractByFIPS(FIPSCODE string, hp hazardproviders.HazardProvider, ...)
- func StreamAbstractByFIPS_WithECAM(FIPSCODE string, hp hazardproviders.HazardProvider, ...)
- func StreamAbstractMultiFrequency(hps []hazardproviders.HazardProvider, freqs []float64, ...)
- type Computeable
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aggregated_StageDamage ¶
func Aggregated_StageDamage(hps []hazardproviders.HazardProvider, sp consequences.StreamProvider, indexlocation geography.Location, terrainelevation float64, coutputfilepath string, soutputfilepath string)
func ComputeEAD ¶
ComputeEAD takes an array of damages and frequencies and integrates the curve. we should probably refactor this into paired data as a function.
func ComputeSpecialEAD ¶
ComputeSpecialEAD integrates under the damage frequency curve but does not calculate the first triangle between 1 and the first frequency.
func StreamAbstract ¶
func StreamAbstract(hp hazardproviders.HazardProvider, sp consequences.StreamProvider, w consequences.ResultsWriter)
func StreamAbstractByFIPS ¶
func StreamAbstractByFIPS(FIPSCODE string, hp hazardproviders.HazardProvider, sp consequences.StreamProvider, w consequences.ResultsWriter)
func StreamAbstractByFIPS_WithECAM ¶
func StreamAbstractByFIPS_WithECAM(FIPSCODE string, hp hazardproviders.HazardProvider, sp consequences.StreamProvider, w consequences.ResultsWriter)
func StreamAbstractMultiFrequency ¶
func StreamAbstractMultiFrequency(hps []hazardproviders.HazardProvider, freqs []float64, sp consequences.StreamProvider, w consequences.ResultsWriter)
Types ¶
type Computeable ¶
type Computeable struct {
structureprovider.StructureProvider
hazardproviders.HazardProvider
consequences.ResultsWriter
ComputeLifeloss bool
LifelossSeed int64
ComplianceRate float64
ComputeByFips bool
FipsCode string
}
func (Computeable) Compute ¶
func (computable Computeable) Compute() error
type Config ¶
type Config struct {
structureprovider.StructureProviderInfo `json:"structure_provider_info"`
hazardproviders.HazardProviderInfo `json:"hazard_provider_info"`
resultswriters.ResultsWriterInfo `json:"results_writer_info"`
ComputeLifeloss bool `json:"compute_lifeloss"`
LifelossSeed int64 `json:"lifeloss_seed,omitempty"`
ComplianceRate float64 `json:"warning_compliance_rate"`
ComputeByFips bool `json:"compute_by_fips"`
FipsCode string `json:"fips_code"`
}
func (Config) CreateComputable ¶
func (config Config) CreateComputable() (Computeable, error)
Click to show internal directories.
Click to hide internal directories.