fixed.aggregateType
集積 numerictype の計算
説明
例
集積数値型の計算
2 つの numerictype
オブジェクトの集積数値型
a_nt = numerictype(1,16,13); b_nt = numerictype(1,18,16); aggNT = fixed.aggregateType(a_nt,b_nt)
aggNT = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 19 FractionLength: 16
a_nt
は、範囲 [-4,4)
を精度 2^-13
で表現できます。b_nt
は、範囲 [-2,2)
を精度 2^-16
で表現できます。aggNT
は、範囲 [-4,4)
を精度 2^-16
で表現できます。
2 つの fi
オブジェクトの集積数値型
a_fi = ufi(pi,16)
a_fi = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 16 FractionLength: 14
b_fi = sfi(-pi,24)
b_fi = -3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 24 FractionLength: 21
aggNT = fixed.aggregateType(a_fi,b_fi)
aggNT = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 24 FractionLength: 21
fi
オブジェクトと整数の集積数値型
a_fi = ufi(pi,16); cInt = uint8(0); aggNT = fixed.aggregateType(a_fi,cInt)
aggNT = DataTypeMode: Fixed-point: binary point scaling Signedness: Unsigned WordLength: 22 FractionLength: 14
a_fi
は、範囲 [0,3]
を精度 2^-14
で表現できます。cInt
は、範囲 [0,255]
を精度 2^0
で表現できます。aggNT
は、範囲 [0,255]
を精度 2^-14
で表現できます。
入力引数
A,B
— 入力オブジェクト
整数 | numerictype
オブジェクト | fi
オブジェクト
入力オブジェクト。整数、2 進小数点でスケーリングされた固定小数点 fi
オブジェクト、または numerictype
オブジェクトとして指定します。
出力引数
aggNT
— 集積数値型
numerictype
オブジェクト
集積数値型。numerictype
オブジェクトとして返されます。
バージョン履歴
R2011b で導入
参考
MATLAB コマンド
次の MATLAB コマンドに対応するリンクがクリックされました。
コマンドを MATLAB コマンド ウィンドウに入力して実行してください。Web ブラウザーは MATLAB コマンドをサポートしていません。
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)