neuron-arithmetic: Arithmetic for neuron coordinates

Description Usage Arguments Value See Also Examples

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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

1
2
3
4
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 Sept. 6, 2021, 5:09 p.m.