FxBundle

References
public sealed class FxBundle
A collection of functions to be drawn in a preview.

Constructors

FxBundle

#
public FxBundle()

Properties

Functions

#
List of functions to draw. Do not add functions to this list, but use the AddFunction(Func{double, double}, {double x0, double x1}[]), AddIntegral(Func{int, double}, {int k0, int k1}[])", or Add(Fx). methods instead.
public List<Fx> Functions { get; }

X

#
Gets or sets the x-domain to draw.
public (double lower, double upper) X { get; set; }

XLabels

#
Special x values to include.
public HashSet<FxLabel> XLabels { get; }

Y

#
Gets or sets the y-domain to draw.
public (double lower, double upper) Y { get; set; }

YLabels

#
Special y values to include.
public HashSet<FxLabel> YLabels { get; }

Methods

Add

#
Add a completed function to this bundle.
public void Add(
function
)

AddFi

#
Add a discrete function to this bundle with the default colour.
public Fx AddFi(
map,
Function map.
params (double x0, double x1)[]
domains
Domains to include, may be empty.
)

AddFx

#
Add a function to this bundle with the default colour.
public Fx AddFx(
map,
Function map.
params (double x0, double x1)[]
domains
Domains to include, may be empty.
)

AddXLabels

#
Add a bunch of unnamed x-axis labels.
public void AddXLabels(
params double[]
parameters
)

AddYLabels

#
Add a bunch of unnamed y-axis labels.
public void AddYLabels(
params double[]
parameters
)

CreateStandardFunction

#
Create the standard preview for a given function.
public static FxBundle CreateStandardFunction(
name
Name of function "sin", "cos", "airy" etc.
)

CreateStandardPdfCdf

#
Create a painter for the PDF and CDF graphs of a continuous statistical distribution.
public static FxBundle CreateStandardPdfCdf()

CreateStandardPdfCdf

#
Create a painter for the PDF and CDF graphs of a discrete statistical distribution.
public static FxBundle CreateStandardPdfCdf(
distribution,
a,
b
)

CreateStandardPdfCdf

#
Create a painter for the PDF and CDF graphs of a discrete statistical distribution.
public static FxBundle CreateStandardPdfCdf()

CreateStandardPdfCdf

#
Create the standard preview for a given statistical distribution.
public static FxBundle CreateStandardPdfCdf(
distribution
)

Draw

#
Draw all functions in this bundle to a bitmap.
public Bitmap Draw(
width,
Width of the bitmap.
height
Height of the bitmap.
)

Draw

#
Context based draw method.
public void Draw(
context,
Rectangle
frame
)

Draw

#
Draw all functions to a graphics context.
public void Draw(
Graphics
graphics,
Rectangle
frame
)