Math functions – Multichannel Systems NeuroExplorer User Manual

Page 279

Advertising
background image

5.5.13. Math Functions


The following math functions are available in NexScript

Function

Description

seed

Initializes random number generator.

expo

Generates a random value exponentially distributed with the
specified mean.

floor

Returns the largest integer that is less than or equal to the
specified number.

ceil

Returns the smallest integer that is greater than or equal to the
specified number.

round

Rounds the specified number to the nearest integer.

abs

Returns the absolute value of the specified number.

sqrt

Returns square root of the specified number.

pow

Returns the specified number raised to the specified power.

exp

Returns exponential of the specified number.

min

Returns minimum of two numbers.

max

Returns maximum two number.

log

Returns logarithm of the specified number.

sin

Returns sine of the specified number.

cos

Returns cosine of the specified number.

tan

Returns tangent of the specified number.

acos

Returns arccosine of the specified number.

asin

Returns arcsine of the specified number.

atan

Returns arctangent of the specified number.

RoundToTS

Rounds the number to the nearest timestamp value.

GetFirstGE

Returns the index of the first timestamp in the specified variable
that is greater or equal to the specified number.

GetFirstGT

Returns the index of the first timestamp in the specified variable
that is greater than the specified number.

GetBinCount

Calculates the number of timestamps in neuron the specified
time interval.

BitwiseAnd

Converts values to unsigned integers and performs bitwise AND
operation.

BitwiseOr

Converts values to unsigned integers and performs bitwise OR
operation.

GetBit

Converts the specified number to an unsigned integer and
returns the value of the specified bit (1 to 32).

Page 277

Advertising