shake

package
v0.0.0-...-f2c17e5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intensity

func Intensity(ie IntensityEquation, vel float64) int32

convert peak velocity in m/s into integer MMI intensity

Types

type FaenzaMichelini2010

type FaenzaMichelini2010 struct{}

L. Faenza and A. Michelini (2010), "Regression analysis of MCS Intensity and ground motion parameters in Italy and its application in ShakeMap", Geophysical Journal International, 180: 1138–1152.

func (FaenzaMichelini2010) RawIntensity

func (fn FaenzaMichelini2010) RawIntensity(vel float64) float64

type HighPass

type HighPass struct {
	// contains filtered or unexported fields
}

func NewHighPass

func NewHighPass(gain float64, q float64) *HighPass

func (*HighPass) Reset

func (f *HighPass) Reset()

func (*HighPass) Sample

func (f *HighPass) Sample(x float64) float64

func (*HighPass) Set

func (f *HighPass) Set(y float64)

type Integrator

type Integrator struct {
	// contains filtered or unexported fields
}

func NewIntegrator

func NewIntegrator(gain float64, dt float64, q float64) *Integrator

func (*Integrator) Reset

func (f *Integrator) Reset()

func (*Integrator) Sample

func (f *Integrator) Sample(x float64) float64

func (*Integrator) Set

func (f *Integrator) Set(y float64)

type IntensityEquation

type IntensityEquation interface {
	RawIntensity(vel float64) float64
}

algorithm to convert peak velocity in m/s into MMI intensity

type Moratalla2020

type Moratalla2020 struct{}

"New Ground Motion to Intensity Conversion Equations (GMICEs) for New Zealand" - Jose M. Moratalla et. al. Seismological Research Letters 92 (2020), 448–459, doi: 10.1785/0220200156

func (Moratalla2020) RawIntensity

func (fn Moratalla2020) RawIntensity(vel float64) float64

type Stream

type Stream struct {
	Rate float64

	HighPass   *HighPass
	Integrator *Integrator
	Last       time.Time
}

running acceleration stream state information

func (*Stream) Condition

func (s *Stream) Condition(samples []int32)

try and make the filter a little less spiky after a reset

func (*Stream) HaveGap

func (s *Stream) HaveGap(at time.Time) bool

detect a break in the stream - signals a reset required

func (*Stream) Peaks

func (s *Stream) Peaks(samples []int32) (float64, float64)

estimate the peak ground motions ...

func (*Stream) Reset

func (s *Stream) Reset()

reset the stream

func (*Stream) Sample

func (s *Stream) Sample(sample int32) (float64, float64)

add a sample to the filter ...

type WaldQuitorianoHeatonKanamori1999

type WaldQuitorianoHeatonKanamori1999 struct{}

David J. Wald, Vincent Quitoriano, Thomas H. Heaton, and Hiroo Kanamori (1999), "Relationships between Peak Ground Acceleration, Peak Ground Velocity, and Modified Mercalli Intensity in California", Earthquake Spectra, Volume 15, No. 3, August 1999.

func (WaldQuitorianoHeatonKanamori1999) RawIntensity

func (fn WaldQuitorianoHeatonKanamori1999) RawIntensity(vel float64) float64

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL