find_idx

버전 1.1.0.2 (4.33 KB) 작성자: Bruno Luong
Fractional binning
다운로드 수: 2.1K
업데이트 날짜: 2021/6/9

라이선스 보기

idx=find_idx(xi, xgrid)
This function not only bin similarly to HISTC, but also returns the fractional position of data points within the binning interval.
It is equivalent to
interp1(xgrid,(1:length(xgrid)), xi)
but with the speed improvement up to 5 times.
Algorithm: dichotomy, complexity of m.log(n), where m isnumber of data points (xi) and n is number of bins (xgrid).
Few obvious examples of applications:
- binning step for more sophisticated interpolation schemes such as multi-dimensional spline or linear tensorial interpolations.
- Generate discrete random sequences with given probability distribution.

인용 양식

Bruno Luong (2024). find_idx (https://www.mathworks.com/matlabcentral/fileexchange/23049-find_idx), MATLAB Central File Exchange. 검색됨 .

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

Community Treasure Hunt

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

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

Remove mex file as request by TMW

1.1.0.0

Correct tags

1.0.0.0