ヘルプ センターヘルプ センター
入力に非自明の勾配とバイアス スケーリングがあるかどうかを判別
tf = isscalingslopebias(a)
tf = isscalingslopebias(T)
例
tf = isscalingslopebias(a) は fi オブジェクト a の勾配とバイアスのスケーリングが自明でない場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。勾配が 2 の整数の累乗で、バイアスが 0 の場合、勾配とバイアス スケーリングは自明です。
a
fi
1
true
0
false
tf = isscalingslopebias(T) は numerictype オブジェクト T の勾配とバイアスのスケーリングが自明でない場合に 1 (true) を返します。それ以外の場合は 0 (false) を返します。
T
numerictype
すべて折りたたむ
fi オブジェクトを作成し、その勾配とバイアスのスケーリングが自明でないかどうかを判別します。
a = fi(pi)
a = 3.1416 DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 13
tf = logical 0
b = fi(pi,1,16,3,1)
b = 4 DataTypeMode: Fixed-point: slope and bias scaling Signedness: Signed WordLength: 16 Slope: 3 Bias: 1
tf = isscalingslopebias(b)
tf = logical 1
fi オブジェクトの勾配とバイアスのスケーリングが自明である場合、つまり勾配が 2 の整数の累乗でバイアスがゼロの場合、isscalingslopebias は 0 を返します。
isscalingslopebias
c = fi(pi,1,16,4,0)
c = 4 DataTypeMode: Fixed-point: slope and bias scaling Signedness: Signed WordLength: 16 Slope: 2^2 Bias: 0
tf = isscalingslopebias(c)
numerictype オブジェクトを作成し、その勾配とバイアスのスケーリングが自明でないかどうかを判別します。
T = numerictype
T = DataTypeMode: Fixed-point: binary point scaling Signedness: Signed WordLength: 16 FractionLength: 15
入力 fi オブジェクト。スカラー、ベクトル、行列または多次元配列として指定します。
データ型: fi
入力 numerictype オブジェクト。スカラーとして指定します。
R2010b で導入
isboolean | isdouble | isfixed | isfloat | isscaleddouble | isscaledtype | isscalingbinarypoint | isscalingunspecified | issingle
isboolean
isdouble
isfixed
isfloat
isscaleddouble
isscaledtype
isscalingbinarypoint
isscalingunspecified
issingle
この例の変更されたバージョンがあります。編集された方の例を開きますか?
次の 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:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office