Safe Haskell | None |
---|---|
Language | Haskell2010 |
Provides spherical harmonic models of scalar-valued functions.
- data SphericalHarmonicModel a = SphericalHarmonicModel {
- modelDegree :: Int
- referenceRadius :: a
- coefficients :: [(a, a)]
- combine :: (Num a, Eq a) => SphericalHarmonicModel a -> SphericalHarmonicModel a -> SphericalHarmonicModel a
- scale :: Num a => a -> SphericalHarmonicModel a -> SphericalHarmonicModel a
- evaluateModel :: (Floating a, Ord a) => SphericalHarmonicModel a -> a -> a -> a -> a
- evaluateModelGradient :: (Floating a, Ord a) => SphericalHarmonicModel a -> a -> a -> a -> (a, a, a)
- evaluateModelGradientInLocalTangentPlane :: (Floating a, Ord a) => SphericalHarmonicModel a -> a -> a -> a -> (a, a, a)
Documentation
data SphericalHarmonicModel a Source
Represents a spherical harmonic model of a scalar-valued function.
SphericalHarmonicModel | |
|
combine :: (Num a, Eq a) => SphericalHarmonicModel a -> SphericalHarmonicModel a -> SphericalHarmonicModel a Source
Adds two compatible spherical harmonic models.
scale :: Num a => a -> SphericalHarmonicModel a -> SphericalHarmonicModel a Source
Linearly scales a spherical harmonic model.
:: (Floating a, Ord a) | |
=> SphericalHarmonicModel a | Spherical harmonic model |
-> a | Spherical radius |
-> a | Spherical colatitude (radian) |
-> a | Spherical longitude (radian) |
-> a | Model value |
Computes the scalar value of the spherical harmonic model at a specified spherical position.
:: (Floating a, Ord a) | |
=> SphericalHarmonicModel a | Spherical harmonic model |
-> a | Spherical radius |
-> a | Spherical colatitude (radian) |
-> a | Spherical longitude (radian) |
-> (a, a, a) | Radial, colatitudinal, and longitudinal components of gradient |
Computes the gradient of the scalar value of the spherical harmonic model, in spherical coordinates, at a specified location.
evaluateModelGradientInLocalTangentPlane Source
:: (Floating a, Ord a) | |
=> SphericalHarmonicModel a | Spherical harmonic model |
-> a | Spherical radius |
-> a | Spherical colatitude (radian) |
-> a | Spherical longitude (radian) |
-> (a, a, a) | East, North, and up components of gradient |
Computes the gradient of the scalar value of the spherical harmonic model at a specified location, in Cartesian coordinates. The result is expressed in a reference frame locally tangent to the specified location.