Skip to contents

A class to model restricted diffusion in a sphere.

Super classes

midi::BaseCompartment -> midi::CircularlyShapedCompartment -> SphereCompartment

Methods

Inherited methods


Method new()

Instantiates a new sphere compartment.

Usage

SphereCompartment$new(restricted_compartment = VanGelderenCompartment$new())

Arguments

restricted_compartment

An instance of the CircularlyShapedCompartment class specifying the restricted compartment within the sphere. Defaults to a Van Gelderen compartment.

Returns

An instance of the SphereCompartment class.


Method clone()

The objects of this class are cloneable with this method.

Usage

SphereCompartment$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

sphComp <- SphereCompartment$new()
sphComp$get_signal(small_delta = 30, big_delta = 30, G = 0.040)
#> [1] 0.1205943
sphComp$get_parameter_names()
#> [1] "SphereRadius"      "SphereDiffusivity"
sphComp$get_parameters()
#> $SphereRadius
#> [1] 15
#> 
#> $SphereDiffusivity
#> [1] 3
#>