Learn R Programming

cda (version 1.5.1)

array_factor: array factor

Description

C++ calculation of the array factor

Usage

array_factor(wavelength, N, pitch)

Arguments

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

Value

S

Details

Brute-force numerical evaluation of the truncated 2D sum of dipole fields

Examples

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

Run the code above in your browser using DataLab