Periodogram

class maelstrom.periodogram.Periodogram(time, mag, freq)[source]

A class to brute force the likelihood in search of small signals. For each orbital period, it will iterate over a simplified Maelstrom model, optimise the values, and then record the loglikelihood.

This is useful for planets, and short period binaries.

Parameters
  • time (array) – Time values

  • mag (array) – Magnitude (or flux) values. Must be relative

  • freq (array) – Array of frequencies

diagnose()[source]

Generate diagnostic plots of the fit values. After running Periodogram.fit(), diagnose will plot the resulting period vs likelihood and period vs optimised asini values.

Returns

array of matplotlib axes.

Return type

array

fit(periods)[source]

Run the periodogram model for a given array of periods.

Parameters

periods (array) – Orbital periods over which to iterate.

Returns

Results

Return type

array