Flat2dDetector.surface_measure¶
- Flat2dDetector.surface_measure(param)¶
Density function of the surface measure.
This is the default implementation relying on the
surface_derivmethod. For a detector withndimequal to 1, the density is given by the Arc length, for a surface withndim2 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-likeor sequence Parameter value(s) at which to evaluate. If
ndim >= 2, a sequence of lengthndimmust 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.shapeifndimis 1,broadcast(*param).shapeotherwise.
- measurefloat or
References