deerlab.dd_cos

dd_cos = <deerlab.model.Model object>

Raised-cosine parametric model

Parameters:
rarray_like

Distance axis, in nanometers.

centerscalar

Center.

fwhmscalar

FWHM.

Returns:
Pndarray

Distance distribution.

Notes

Parameter List

Name

Lower

Upper

Type

Frozen

Unit

Description

center

1

20

nonlin

No

nm

Center

fwhm

0.1

5

nonlin

No

nm

FWHM

Model

This provides a raised-cosine distribution, defined by P(r) = \frac{1}{2w}\cos\left(\frac{r-r_0}{w}\pi\right) for r_0-w \le r \le r_0+w, and zero otherwise.

Examples

Example of the model evaluated at the start values of the parameters:

(Source code, png, hires.png, pdf)

../_images/deerlab-dd_cos-1.png