|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.pentec.math.AMath
public class AMath
This class is a collection of mathematical functions in the form of static utility methods intended for use with ADAPT.
| Field Summary | |
|---|---|
static int |
EXP
Linear, logarithmic, or exponential mode indicators |
static int |
LINEAR
Linear, logarithmic, or exponential mode indicators |
static int |
LOG
Linear, logarithmic, or exponential mode indicators |
static double |
LOG10SCALE
Constant used to convert from natural log (ln) |
| Constructor Summary | |
|---|---|
AMath()
|
|
| Method Summary | |
|---|---|
private static double[] |
getDeltas(int iMode,
int iNumDeltas,
double dTotalDelta)
This method computes an array of deltas for multi-sectioned intervals. |
static double[] |
getDeltas(int iMode,
int iNumDeltas,
double dScaleMin,
double dScaleMax)
This method computes an array of deltas for multi-sectioned intervals. |
static double[] |
getDeltas(int iMode,
int iNumDeltas,
int iScaleMin,
int iScaleMax)
This method computes an array of deltas for multi-sectioned intervals. |
private static java.awt.image.DataBuffer |
getRandom2DBuffer()
Create a constant slope 2D gradient with random slope direction. |
static AImage |
makeImage(java.io.File file,
DataFrame dataFrame)
Load a frame with an image with random slope direction |
static int |
numFracDigits(double d)
Compute the number of fraction digits required to display a number. |
static int |
numIntDigits(double d)
Compute the number of integer digits required to display a number. |
static int |
round(int iVal,
int iIncrement)
|
static int |
round(int iVal,
int iIncrement,
int iOffset)
|
static double |
roundUp(double d)
Rounds a number up to the nearest power of ten times 1, 2, or 5. |
static int |
unsignedByteToInt(byte number)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int EXP
public static final int LINEAR
public static final int LOG
public static final double LOG10SCALE
| Constructor Detail |
|---|
public AMath()
| Method Detail |
|---|
private static double[] getDeltas(int iMode,
int iNumDeltas,
double dTotalDelta)
iMode - either LINEAR, LOG, or EXPiNumDeltas - the number of intervals to divide the region intodTotalDelta - the total range of the interval
public static double[] getDeltas(int iMode,
int iNumDeltas,
double dScaleMin,
double dScaleMax)
iMode - either LINEAR, LOG, or EXPiNumDeltas - the number of intervals to divide the region intodScaleMin - the interval minimumdScaleMax - the interval maximum
public static double[] getDeltas(int iMode,
int iNumDeltas,
int iScaleMin,
int iScaleMax)
iMode - either LINEAR, LOG, or EXPiNumDeltas - the number of sections to divide the interval intoiScaleMin - the interval minimumiScaleMax - the interval maximum
private static java.awt.image.DataBuffer getRandom2DBuffer()
public static AImage makeImage(java.io.File file,
DataFrame dataFrame)
file - the file to be loaded with the new datadataFrame - the frame to place the image in
public static int numFracDigits(double d)
d - the number to compute fraction digits for
public static int numIntDigits(double d)
d - the number to compute integer digits for
public static int round(int iVal,
int iIncrement)
public static int round(int iVal,
int iIncrement,
int iOffset)
public static double roundUp(double d)
d - the number to round up
public static int unsignedByteToInt(byte number)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||