Learn R Programming

cda (version 2.0.0)

array_factor: array factor

Description

C++ calculation of the array factor

Usage

array_factor(wavelength, N, pitch)

Arguments

wavelength
wavelength in nm
N
half the number of dipoles along one side
pitch
pitch in nm

Value

complex array factor

Details

Brute-force numerical evaluation of the truncated 2D sum of dipole fields in a finite square array

Examples

Run this code
S <- array_factor(seq(400, 600),  10,  500)
str(S)

Run the code above in your browser using DataLab