create_particle: Create a Model of a (Multi-layer) Scattering Particle

Description Usage Arguments Value

View source: R/scatterer.R

Description

Create_particle creates a model of a spherical particle with n_layers layers, each of which has a radius and a refractive index. Typically, layers are described from inside towards the outside (i.e. lumen first, then membrane).

Usage

1
create_particle(medium = 1.34, lambda = 488, n_angle = 361, n_layers, r, n)

Arguments

medium

The refractive index (RI) of the material surrounding the particle (Default = 1.34, approximating the RI of normal saline solution)

lambda

The wavelength of the incident light, in nm. Default = 488.

n_angle

The number of angular steps to calculate Stokes coefficients, in degrees. (Default = 361). Note: more steps increases resolution at the expense of run time. The default is adequate for most situations.

n_layers

The number of layers in a particle. A typical model of an EV will have two layers. The inner layer is the lumen, and the outer layer is the membrane.

r

A numeric vector of radii of each layer, in nm. Note that length(r) must equal n_layers.

n

A numeric vector of refractive indices of each layer. Note that length(n) must equal n_layers.

Value

An object of class Scatterer.


rogerswt/flowMie documentation built on Jan. 31, 2021, 8 a.m.