Math Functions
Handle sigmoid and hyperbolic operations
Apoc provides a set of function useful to ML purpose.
All these functions returns a Double
value.
Statement | Description |
---|---|
returns the hyperbolic secant |
|
returns the sigmoid value |
|
returns the sigmoid prime [ sigmoid(val) * (1 - sigmoid(val)) ] |
|
returns the hyperbolic sin |
|
returns the hyperbolic tangent |
|
returns the hyperbolic cotangent |
|
returns the hyperbolic cosin |
|
returns the hyperbolic cosecant |
Usage examples
The following returns the hyperbolic cosecant
RETURN apoc.math.csch(1.5) AS output;
Output |
---|
0.47 |
The following returns the hyperbolic secant
RETURN apoc.math.sech(1.5) AS output;
Output |
---|
0.43 |
The following returns the hyperbolic cosin
RETURN apoc.math.cosh(1.5) AS output;
Output |
---|
2.35 |
The following returns the hyperbolic sin
RETURN apoc.math.sinh(1.5) AS output;
Output |
---|
2.13 |
The following returns the hyperbolic cotangent
RETURN apoc.math.coth(3.5) AS output;
Output |
---|
1.00 |
The following returns the hyperbolic tangent
RETURN apoc.math.tanh(1.5) AS output;
Output |
---|
0.90 |
The following returns the sigmoid prime
RETURN apoc.math.sigmoidPrime(2.5) AS output;
Output |
---|
0.70 |
The following returns the sigmoid
RETURN apoc.math.sigmoidPrime(2.5) AS output;
Output |
---|
0.92 |