Plot
The Plot module provides functions to create plots of distributions and functions. The two primary functions are Plot.dists
and Plot.fn
, which allow you to plot multiple labeled distributions and plot functions respectively.
Plot.dists
Plots one or more labeled distributions on the same plot. Distributions can be either continuous, discrete, or a single number.
Plot.dists: ({dists: list<{name: string, value: distribution | number}>}) => plot
Examples:
Plot.fn
Plots a function within a specified range of x-values.
Plot.fn: ({fn: (number => number), min: number, max: number}) => plot
Examples: