Sigmoid & Hyperbolic Operations

The APOC library provides a set of functions useful for machine learning purposes. These functions return a double value.

Functions for sigmoid and hyperbolic operations

Qualified Name Type

apoc.math.cosh(value FLOAT) - returns the hyperbolic cosine.

Function

apoc.math.coth(value FLOAT) - returns the hyperbolic cotangent.

Function

apoc.math.csch(value FLOAT) - returns the hyperbolic cosecant.

Function

apoc.math.sech(value FLOAT) - returns the hyperbolic secant of the given value.

Function

apoc.math.sigmoid(value FLOAT) - returns the sigmoid of the given value.

Function

apoc.math.sigmoidPrime(value FLOAT) - returns the sigmoid prime [ sigmoid(val) * (1 - sigmoid(val)) ] of the given value.

Function

apoc.math.sinh(value FLOAT) - returns the hyperbolic sine of the given value.

Function

apoc.math.tanh(value FLOAT) - returns the hyperbolic tangent of the given value.

Function

Examples

The following returns the hyperbolic cosecant
RETURN apoc.math.csch(1.5) AS output;
Table 1. Results
Output

0.47

The following returns the hyperbolic secant
RETURN apoc.math.sech(1.5) AS output;
Table 2. Results
Output

0.43

The following returns the hyperbolic cosin
RETURN apoc.math.cosh(1.5) AS output;
Table 3. Results
Output

2.35

The following returns the hyperbolic sin
RETURN apoc.math.sinh(1.5) AS output;
Table 4. Results
Output

2.13

The following returns the hyperbolic cotangent
RETURN apoc.math.coth(3.5) AS output;
Table 5. Results
Output

1.00

The following returns the hyperbolic tangent
RETURN apoc.math.tanh(1.5) AS output;
Table 6. Results
Output

0.90

The following returns the sigmoid prime
RETURN apoc.math.sigmoidPrime(2.5) AS output;
Table 7. Results
Output

0.70

The following returns the sigmoid
RETURN apoc.math.sigmoidPrime(2.5) AS output;
Table 8. Results
Output

0.92