dspcauchy: Density Function for Spherical Cauchy Distribution
Description
Calculates the density of the spherical Cauchy distribution for given data points.
Usage
dspcauchy(y, mu, rho, log = FALSE)
Value
A vector of density values (or log-density if log = TRUE) for each row in y.
Arguments
y
A matrix or data frame where each row represents a data point on the unit hypersphere.
mu
A vector or matrix representing the mean direction parameter(s).
If a vector, it must be normalized (unit length) and is applied to all data points.
If a matrix, it must have the same number of rows as y, and each row must be normalized.
rho
A scalar or a vector representing the concentration parameter.
If a vector, its length must match the number of rows in y.
Each rho[i] is used to evaluate the density for y[i, ].
Must be between 0 (inclusive) and 1 (exclusive).
log
Logical; if TRUE, the log-density is returned. Default is FALSE.
Details
This function calculates the density of the spherical Cauchy distribution for each data point in y, given the
parameters mu and rho.