Documentation ¶
Overview ¶
Package rawdist provide discretized spherical distribution types, that are un-normalized, that is, they do not sum to one, and its the responsibility of the caller to make the appropriate integration.
Index ¶
- type Normal
- func (n Normal) Lambda() float64
- func (n Normal) LogProb(dist float64) float64
- func (n Normal) LogProbRingDist(dist int) float64
- func (n Normal) Prob(dist float64) float64
- func (n Normal) ProbRingDist(dist int) float64
- func (n Normal) ScaledProb(dist float64) float64
- func (n Normal) ScaledProbRingDist(dist int) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Normal ¶
type Normal struct {
// contains filtered or unexported fields
}
Normal is an unscaled discretization of an spherical normal distribution.
It is based on equation (2) from Hauberg (2018) 2018 IEEE FUSION: 704 <doi:10.23919/ICIF.2018.8455242>:
SN(x|u,v) ∝ exp(-λ * gcd(x,u)^2/2)
where x and u are points on a sphere, u is the mean, λ is the concentration parameter (in 1/radian^2), and gcd is the great circle distance.
func NewNormal ¶
NewNormal returns an unscaled and discretized spherical normal distribution, using lambda as the concentration parameter (in 1/radian^2) using scale as the discretization scale for the distance.
func (Normal) Lambda ¶
Lambda returns the concentration parameter (in 1/radian^2) of the spherical normal distribution.
func (Normal) LogProb ¶
LogProb returns the natural logarithm of the probability density function at a distance dist (in radian).
func (Normal) LogProbRingDist ¶
LogProbRingDist returns the natural logarithm of the probability density function at a given int scaled distance.
func (Normal) Prob ¶
Prob returns the value of the probability density function at a distance dist (in radian).
func (Normal) ProbRingDist ¶
ProbRingDist returns the value of the probability density function at a given int scaled distance.
func (Normal) ScaledProb ¶
ScaledProb returns the value of the probability density function for a pixel at a distance dist (in radian) scaled by the maximum probability (i.e., by 0 distance).
func (Normal) ScaledProbRingDist ¶
ScaledProbRingDist returns the value of the probability density function at a given int scaled distance scaled by the maximum probability (i.e., by 0 distance).