opcsim.utils.
ri_eff
(species, weights=None)¶Calculate the effective refractive index for an array of refractive indices and their respective weights. Alternatively, an array of diameters can be passed which will be used to calculate the volumetric weights.
An array of refractive indices.
An array of volumetric weights.
The effective refractive index.