dot-domain: Domain Length Calculation for Curves

.domainR Documentation

Domain Length Calculation for Curves

Description

Computes the length of the domain of a curve by checking the presence of non-NA values in the specified matrix. The function returns a logical vector indicating which rows contain at least one non-NA element, allowing for an evaluation of the effective length of the domain.

Usage

.domain(v, use0)

Arguments

v

A list containing two elements:

  • v[[1]]: A matrix representing the values of the curve (v(x)).

  • v[[2]]: A matrix representing the values of the derivative of the curve (v'(x)).

Each matrix should have d columns, where d is the dimensionality of the curve.

use0

A logical value indicating which element of v to consider:

  • If use0 = TRUE, the function considers v[[1]] (the curve values).

  • If use0 = FALSE, the function considers v[[2]] (the derivative values).

Details

The function evaluates each row of the specified matrix (either v[[1]] or v[[2]]) to determine if there is at least one non-NA entry. This is particularly useful for assessing the effective domain of curves where some values may be missing.

Value

A logical vector where each element is TRUE if at least one element in the corresponding row of the selected matrix (either v[[1]] or v[[2]]) is not NA, and FALSE otherwise.


funMoDisco documentation built on April 16, 2025, 1:10 a.m.