Histogram transformation

バージョン 1.1.0.0 (1.91 KB) 作成者: Peter Nagy
transformHistogram transforms a frequency histogram according to a formula specified as an argument.
ダウンロード: 704
更新 2009/8/14

ライセンスの表示

[transformedHistogram,newX]=transformHistogram(originalHistogram,originalX,formula)
transformHistogram transforms the histogram stored in the 1D array 'orignalHistogram' according to the formula 'formula'.
'originalHistogram' is defined at bins stored in 'orignalX'.
The output 'transformedHistogram' contains the transformed histogram at the same bins as the originalHistogram.
The histogram is assumed to be stored according to the following principle:
f(X(i)) = frequency (X(i)<lambda<=X(i+1))
f(X(end) = frequency (lambda=X(end))
This is the principle how histc generates its output.
The best is if f(end)=0
'formula' has to be a string containing the transformation rules. The variable has to be x, e.g. 2x+3
Example: transformHistogram(starved,xscale,'x.^2')

引用

Peter Nagy (2024). Histogram transformation (https://www.mathworks.com/matlabcentral/fileexchange/25015-histogram-transformation), MATLAB Central File Exchange. 取得済み .

MATLAB リリースの互換性
作成: R2008a
すべてのリリースと互換性あり
プラットフォームの互換性
Windows macOS Linux
カテゴリ
Help Center および MATLAB AnswersHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!
バージョン 公開済み リリース ノート
1.1.0.0

The length of the X scale of the transformed histogram was fixed.

1.0.0.0