|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcds.tools.pixtools.BitManipulation
public class BitManipulation
bit manipulation class derived from Healpix fortran90 program.
| Field Summary | |
|---|---|
static long |
magic1
magic1 odd bits set constant |
static long |
magic2
magic2 - even bits set constant |
| Constructor Summary | |
|---|---|
BitManipulation()
default constructor |
|
| Method Summary | |
|---|---|
long |
invLSB(long i)
returns i with even bits inverted |
long |
invMSB(long i)
returns i with odd bits inverted |
long |
invswapLSBMSB(long i)
returns NOT i with even and odd bit positions interchanged |
static void |
main(java.lang.String[] pars)
the main program for simple test |
double |
MODULO(double a,
double b)
simulates behaviour of fortran90 MODULO function |
long |
swapLSBMSB(long i)
swaps low and high bits in the word i |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long magic1
public static long magic2
| Constructor Detail |
|---|
public BitManipulation()
| Method Detail |
|---|
public long swapLSBMSB(long i)
i - integer input word
public long invswapLSBMSB(long i)
i - int input word
public long invLSB(long i)
i - int input word
public long invMSB(long i)
i - int input word
public double MODULO(double a,
double b)
a - doubleb - double
public static void main(java.lang.String[] pars)
pars -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||