SphericalDetector.surface_measure¶
-
SphericalDetector.
surface_measure
(self, param)¶ Density function of the surface measure.
This is the default implementation relying on the
surface_deriv
method. For a detector withndim
equal to 1, the density is given by the Arc length, for a surface withndim
2 in a 3D space, it is the length of the cross product of the partial derivatives of the parametrization, see Wikipedia’s Surface area article.- Parameters
- param
array-like
or sequence Parameter value(s) at which to evaluate. If
ndim >= 2
, a sequence of lengthndim
must be provided.
- param
- Returns
- measurefloat or
numpy.ndarray
The density value(s) at the given parameter(s). If a single parameter is provided, a float is returned. Otherwise, an array is returned with shape
param.shape
ifndim
is 1,broadcast(*param).shape
otherwise.
- measurefloat or
References