Lines Matching defs:value

22  * its extremes. As a simple example, consider the value 33 as a simple 8-bit number with three
26 * deliver measurements with a gaussian distribution around the exact value, meaning it is more
27 * reasonable to assume the value as a "center" value with a symmetric uncertainty interval.
28 * RFC-6225 redefines the "resolution" from RFC-3825 with an "uncertainty" value with these
65 public RealValue(double value) {
66 mValue = value;
71 public RealValue(double value, int resolution) {
72 mValue = value;
108 throw new ProtocolException("GeoLocation length field value " + locLength +
198 long value = 0;
208 value = (value << width) | getBits(mOctets[octet], sbit, width);
214 return value;
232 private void append(long value, int width) {
233 System.out.printf("Appending %x:%d\n", value, width);
242 data[b0] = (byte) ((data[b0] & ~dmask) | ((value >>> shr) & dmask));
246 data[b0] = (byte) ((data[b0] & ~dmask) | ((value << -shr) & dmask));
258 static double fixToFloat(long value, int fractionSize, int width) {
260 if ((value & sign) != 0) {
261 value = -value;
262 return -(double) (value & (sign - 1)) / (double) (1L << fractionSize);
264 return (double) (value & (sign - 1)) / (double) (1L << fractionSize);
268 private static long floatToFix(double value, int fractionSize, int width) {
269 return Math.round(value * (1L << fractionSize)) & ((1L << width) - 1);
275 * Convert an absolute variance value into absolute resolution representation,
290 * @param fieldWidth Full width of the fixed point number used to represent the value.
292 * value.
303 * @param fieldWidth Full width of the fixed point number used to represent the value.
305 * value.