neuron-arithmetic: Arithmetic for neuron coordinates

*.neuronR Documentation

Arithmetic for neuron coordinates

Description

If x is a 1-vector or a 3-vector, multiply xyz only If x is a 4-vector, multiply xyz and diameter by that TODO Figure out how to document arithemtic functions in one go

Usage

## S3 method for class 'neuron'
n * x

## S3 method for class 'neuron'
n + x

## S3 method for class 'neuron'
n - x

## S3 method for class 'neuron'
n / x

Arguments

n

a neuron

x

(a numeric vector to multiply neuron coords in neuron)

Value

modified neuron

See Also

neuron

Examples

n1<-Cell07PNs[[1]]*2
n2<-Cell07PNs[[1]]*c(2,2,2,1)
stopifnot(all.equal(n1,n2))
n3<-Cell07PNs[[1]]*c(2,2,4)

nat documentation built on May 29, 2024, 10:36 a.m.