FxBundle

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

Constructors

FxBundle

#
public FxBundle()

Properties

Functions

#
public List<Fx> Functions { get; }
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.

X

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

XLabels

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

Y

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

YLabels

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

Methods

Add

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

AddFi

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

AddFx

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

AddXLabels

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

AddYLabels

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

CreateStandardFunction

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

CreateStandardPdfCdf

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

CreateStandardPdfCdf

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

CreateStandardPdfCdf

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

CreateStandardPdfCdf

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

Draw

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

Draw

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

Draw

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