Canonical Signed Digits

バージョン 1.0.0.0 (1.95 KB) 作成者: Patrick Moran
Generates a CSD representation of a floating point number.
ダウンロード: 3.8K
更新 2006/1/24

ライセンスがありません

Canonical-signed-digit (CSD) coefficient representations of floating point numbers lead to efficient add/subtract networks for hardwired DSP multiplies of two?s complement signals.

example csdigit(23) returns +0-00-.
Where +0-00-. is a representation of +1 in 2^5, -1 in 2^3 and -1 in 2^0 positions.
i.e. 23 = 32 - 8 - 1

example [a,p,n]=csdigit(23.5,6,2) returns
a = +0-000.-0
p=32
n=8.5
23.5 = 32 - 8 - 0.5

引用

Patrick Moran (2024). Canonical Signed Digits (https://www.mathworks.com/matlabcentral/fileexchange/9730-canonical-signed-digits), MATLAB Central File Exchange. 取得済み .

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

Community Treasure Hunt

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

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