FINITE

Purpose:

Returns 1 for each element that is not infinite (inf) or NA (nan).

Syntax:

FINITE(series)

series

-

A series to test.

Returns:

A series or array where each element is 1 where the input series or array is not inf or nan and 0 where the input series or array is inf or nan.

Example:

a = {1, 2, inf, nan};

b = 5;

c = {};

 

finite(a) == {1, 1, 0, 0}

finite(b) == {1}

finite(c) == {}

Remarks:

FINITE always returns a series.

 

FINITE returns an empty series if the input is an empty series.

See Also:

INF

ISEMPTY

ISINF

ISNAN