缩放
fixed-pointnumberscanbeencodedaccordingtothescheme
real-worldvalue=(slopeinteger ) bias
where the slope can be expressed as
slope=slopeadjustmentfactor2固定扩展
theintegerissometimescalledthestoredinteger.thisistheraw
binary number,inwhichthebinarypointassumedtobeatthefarrightoftheword.in
fixed-pointdesignerdocumentation,thenegativeofthefixedexponentisoftenreferredtoasthe
函数长度。
theslopeandbiastogetherrepresentthescalingofthefixed-point number.inanumber
with zero bias,onlytheslopeaffectsthescaling.a fixed-pointnumberthatisonlyscaled
bybinarypointpositionisequivalenttoanumberin [ slope bias ] representationthathasa
biasequaltozeroandaslopeadjustmentfactorequaltoone.thisisreferredtoasbinary
点- onlyscalingorpower-of-two scaling :
real-world value=2固定扩展integer
or
real-world value=2- fraction lengthinteger
fixed-pointdesignersoftwaresupportsbothbinarypoint-onlyscalingand [ slope bias ]
灌篮。
笔记本
forexamplesofbinarypoint-only scaling,see the Fixed-Point Designer
perform binary-pointscalingexample。
foranexampleofhowtocomputeslopeandbiasinmatlab,see Compute Slope and Bias