convert_cosine_to_angles#

Hist1d.convert_cosine_to_angles(full_range=True)[source]#

Convert edges which represent cosine(angle) to angle.

Edges must not exceed the interval [-1, 1].

Parameters:
full_rangebool, default True

Control the output range.

  • If False, return a histogram ranging from 0 to π.

  • If True, return a histogram ranging from 0 to 2π, where the second half is a mirror image of the first.

Returns:
histHist1d
Raises:
ValueError

Raised if the edges do not represent cosine values.