public final class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static int |
bits(int i)
Compute the integer logarithms (ceil(log(x+1)) of a value
|
static int |
floorBy(int value,
int factor)
return floor(value / factor)
|
static int |
maxbits(int[] i,
int pos,
int length)
Compute the maximum of the integer logarithms (ceil(log(x+1)) of a range
of value
|
protected static int |
maxbits32(int[] i,
int pos) |
static int |
maxdiffbits(int initoffset,
int[] i,
int pos,
int length)
Compute the maximum of the integer logarithms (ceil(log(x+1)) of a the
successive differences (deltas) of a range of value
|
public static int maxbits(int[] i,
int pos,
int length)
i - source arraypos - starting positionlength - number of integers to considerprotected static int maxbits32(int[] i,
int pos)
public static int maxdiffbits(int initoffset,
int[] i,
int pos,
int length)
initoffset - initial vallue for the computation of the deltasi - source arraypos - starting positionlength - number of integers to considerpublic static int bits(int i)
i - source valuepublic static int floorBy(int value,
int factor)
value - numeratorfactor - denominatorCopyright © 2014. All Rights Reserved.