Compare-methods: Compare a SparseNeuroVol object with a numeric value

Compare,SparseNeuroVol,numeric-methodR Documentation

Compare a SparseNeuroVol object with a numeric value

Description

This method compares the data of a SparseNeuroVol object (e1) with a numeric value (e2) using a generic comparison function.

This method compares a numeric value (e1) with the data of a SparseNeuroVol object (e2) using a generic comparison function.

This method compares two NeuroVec objects (e1 and e2) using a generic comparison function. The dimensions of both objects are checked for compatibility before performing the comparison.

Usage

## S4 method for signature 'SparseNeuroVol,numeric'
Compare(e1, e2)

## S4 method for signature 'numeric,SparseNeuroVol'
Compare(e1, e2)

## S4 method for signature 'NeuroVec,NeuroVec'
Compare(e1, e2)

Arguments

e1

A NeuroVec object to be compared.

e2

A NeuroVec object to be compared.

Value

The result of the comparison between the SparseNeuroVol object's data and the numeric value.

The result of the comparison between the numeric value and the SparseNeuroVol object's data.

The result of the comparison between e1 and e2.


bbuchsbaum/neuroim2 documentation built on Jan. 2, 2025, 3:38 p.m.