Kernel density estimation for circular functions

버전 1.5.0.0 (4.12 KB) 작성자: Dylan Muir
Performs kernel density estimates over arbitrary periodic domains.
다운로드 수: 676
업데이트 날짜: 2017/8/16

라이선스 보기

See also http://dylan-muir.com/articles/circular_kernel_estimation/
circ_ksdensity - Compute a kernel density estimate over a periodic domain

Usage: [vfEstimate] = circ_ksdensity(vfObservations, vfPDFSamples, <vfDomain, fSigma, vfWeights>)

This function calculates a kernel density estimate of an (optionally weighted) data sample, over a periodic domain.

'vfObservations' is a set of observations made over a periodic domain, optionally defined by 'vfDomain': [fMin fMax]. The default domain is [0..2*pi]. 'vfPDFSamples' defines the sample points over which to perform the kernel density estimate, over the same domain as 'vfObservations'.

Weighted estimations can be performed by providing the optional argument 'vfWeights', where each element in 'vfWeights' corresponds to the matching element in 'vfObservations'.

The kernel density estimate will be performed using a wrapped Gaussian kernel, with a width estimated as
(4/3)^0.2 * circ_std(vfObservations, vfWeights) *(length(vfObservations^-0.2)

The optional argument 'fSigma' can be provided to set the width of the kernel.

'vfEstimate' will be a vector with a (weighted) estimate of the underlying distribution, with an entry for each element of 'vfPDFSamples'. If no weighting is supplied, the estimate will be scaled such that it forms a PDF estimate over the supplied sample domain, taking into account sample bin widths. If a weight vector is supplied then the estimate will be scaled such that the sum over the domain attempts to match the sum of weights, taking into account sample bin widths.

인용 양식

Dylan Muir (2024). Kernel density estimation for circular functions (https://www.mathworks.com/matlabcentral/fileexchange/44072-kernel-density-estimation-for-circular-functions), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Signal Processing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.5.0.0

Updated description
Updated description
Updated description
Updated usage formatting
Updated description
Updated description

1.4.0.0

Updated summary

1.3.0.0

Updated description

1.2.0.0

Updated scaling of density estimate.

1.1.0.0

Improved weighting of density estimate.

1.0.0.0