angle_distribution_weight (spectrum_index, angle_index : integer) (float)

Navigation:  User guide > OLE automation > Properties >

angle_distribution_weight (spectrum_index, angle_index : integer) (float)

Previous pageReturn to chapter overviewNext page

Returns or sets a weight of the angle of incidence distribution of the spectrum which is specified by the spectrum_index. Spectra are counted 1, 2, 3, ...

The weight which is returned or set is specified by the angle_index. Angles in the distribution are counted 1, 2, 3, ...

 

Please take into account that there is no automatic normalization of the weights of a distribution. It is your responsibility to properly normalize angular weights.

 

VBA code examples:

 

  wcd.angle_distribution_weight(1, 1) = 0.1

  wcd.angle_distribution_weight(1, 2) = 0.3

  wcd.angle_distribution_weight(1, 3) = 0.25

  wcd.angle_distribution_weight(1, 4) = 0.15

  wcd.angle_distribution_weight(1, 5) = 0.2

 

 

  MsgBox wcd.angle_distribution_weight(1, 2)