ajint ajRound (
ajuint i,
ajuint vround
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| ajuint | i | Input | Integer to round. |
| ajuint | vround | Input | Rounding multiple. |
| ajint | RETURN | Result. |
From EMBOSS 1.0.0
float ajRoundFloat (
float a,
ajuint nbits
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | a | Input | Float to round. |
| ajuint | nbits | Input | Number of bits to free. |
| float | RETURN | Result. |
From EMBOSS 6.2.0
void ajCvtRecToPol (
float x,
float y,
float* radius,
float* angle
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | x | Input | X coordinate |
| float | y | Input | Y coordinate |
| float* | radius | Output | Radius |
| float* | angle | Output | Angle |
| void | RETURN |
From EMBOSS 6.2.0
void ajCvtPolToRec (
float radius,
float angle,
float* x,
float* y
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | radius | Input | Radius |
| float | angle | Input | Angle |
| float* | x | Output | X coordinate |
| float* | y | Output | Y coordinate |
| void | RETURN |
From EMBOSS 6.2.0
float ajCvtDegToRad (
float degrees
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | degrees | Input | Degrees |
| float | RETURN | Radians |
From EMBOSS 6.2.0
float ajCvtRadToDeg (
float radians
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | radians | Input | Radians |
| float | RETURN | Degrees |
From EMBOSS 6.2.0
double ajCvtGaussToProb (
float mean,
float sd,
float score
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | mean | Input | mean |
| float | sd | Input | sd |
| float | score | Input | score |
| double | RETURN | probability |
From EMBOSS 6.2.0
float ajMathGmean (
const float* s,
ajint n
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const float* | s | Input | array of values |
| ajint | n | Input | number of values |
| float | RETURN | geometric mean |
From EMBOSS 6.2.0
ajint ajMathModulo (
ajint a,
ajint b
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| ajint | a | Input | value1 |
| ajint | b | Input | value2 |
| ajint | RETURN | value1 modulo value2 |
From EMBOSS 6.2.0
void ajRandomSeed (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| void | RETURN |
From EMBOSS 1.0.0
ajint ajRandomNumber (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| ajint | RETURN | Random number |
From EMBOSS 1.0.0
double ajRandomDouble (
void
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| double | RETURN | Random number |
From EMBOSS 6.2.0
ajuint ajMathCrc32 (
const AjPStr seq
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | seq | Input | Sequence as a string |
| ajuint | RETURN | CRC32 checksum. |
From EMBOSS 6.2.0
unsigned long long ajMathCrc64 (
const AjPStr thys
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| const AjPStr | thys | Input | sequence |
| unsigned long long | RETURN | 64-bit CRC |
From EMBOSS 6.2.0
size_t ajCvtSposToPos (
size_t len,
ajlong ipos
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| size_t | len | Input | String length. |
| ajlong | ipos | Input | Position (0 start, negative from the end). |
| size_t | RETURN | string position between 0 and (length minus 1). |
From EMBOSS 6.2.0
size_t ajCvtSposToPosStart (
size_t len,
size_t imin,
ajlong ipos
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| size_t | len | Input | maximum length. |
| size_t | imin | Input | Start position (0 start, no negative values). |
| ajlong | ipos | Input | Position (0 start, negative from the end). |
| size_t | RETURN | string position between 0 and (length minus 1). |
From EMBOSS 6.2.0
ajuint ajNumLengthDouble (
double dnumber
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| double | dnumber | Input | Double precision value |
| ajuint | RETURN | Number of digits |
From EMBOSS 4.1.0
ajuint ajNumLengthFloat (
float fnumber
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| float | fnumber | Input | Single precision value |
| ajuint | RETURN | Number of digits |
From EMBOSS 4.1.0
ajuint ajNumLengthInt (
ajlong inumber
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| ajlong | inumber | Input | Integer |
| ajuint | RETURN | Number of digits |
From EMBOSS 4.1.0
ajuint ajNumLengthUint (
ajulong inumber
);
| Type | Name | Read/Write | Description |
|---|---|---|---|
| ajulong | inumber | Input | Unsigned integer |
| ajuint | RETURN | Number of digits |
From EMBOSS 4.1.0