Divooka.DSL.Plotting
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations
Remarks
Codes for this part will be auto-generated based on contents in PlotConfigurations folder.
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureNumberDisplay()
Creates a configuration for NumberDisplay with fixed image width
Returns
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureTextDisplay()
Creates a configuration for TextDisplay.
If imageWidth is given and greater than 0, the text may flow into multiple line to fit in the width.
Otherwise the text will always be displayed in one line.
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureTextDisplayWithTitle()
Creates a configuration for TextDisplay with Title.
If imageWidth is given and greater than 0, the text may flow into multiple line to fit in the width.
Otherwise the text will always be displayed in one line.
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureTextDisplayWithTitleAndSubtitle()
Creates a configuration for TextDisplay with Title and Subtitle.
If imageWidth is given and greater than 0, the text may flow into multiple line to fit in the width.
Otherwise the text will always be displayed in one line.
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureTableDisplay()
Create a configuration for TableDisplay
Parameters
| Name | Description | Default |
|---|---|---|
headerFillColor |
LightSlateGray | |
headerTextColor |
White | |
primaryFillColor |
AliceBlue | |
secondaryFillColor |
||
cellTextColor |
SlateGray | |
borderColor |
DimGray |
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureTableDisplayFixedWidth()
Create a configuration for TableDisplay with fixed image width
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureScatterPlot()
Create a configuration for ScatterPlot
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureScatterPlotMultiSeries()
Create a configuration for ScatterPlotMultiSeries
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureLinePlot()
Create a configuration for LinePlot
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureScatterPlotTwoAxes()
Create a configuration for ScatterPlotTwoAxes
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureBarChart()
Create a configuration for BarChart
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureHisogram()
Create a configuration for Hisogram
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureBubbleChart()
Create a configuration for BubbleChart
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureBubbleChartMultiSeries()
Create a configuration for BubbleChartMultiSeries
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureFunnelChart()
Create a configuration for FunnelChart
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigurePieChart()
Create a configuration for PieChart
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureDonutChart()
Create a configuration for DonutChart
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureQRCode()
Create a configuration for QR Code
Parameters
| Name | Description | Default |
|---|---|---|
background |
White | |
foreground |
Black |
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureSVG()
Create a configuration for SVG rendering
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureHeatmap()
Create a configuration for Heatmap
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureRadarChart()
Create a configuration for RadarChart
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigurePopulationPyramid()
Create a configuration for PopulationPyramid
Divooka.DSL.Plotting.API.Configurations.PlotConfigurations.ConfigureTimeline()
Create a configuration for Timeline
Divooka.DSL.Plotting.API.CustomPlot
A customizable plot modelled after ScottPlot 5.0.
Provides full control over plot content and style.
Remarks
Provides dataflow context functional compositional OOP driven method for defininng plots.
This is essentially a "parser" or converter from custom OOP definitions to ScottPlot instructions.
Divooka.DSL.Plotting.API.CustomPlot.GeneratePlot()
Parameters
| Name | Description | Default |
|---|---|---|
width |
800 | |
height |
600 |
Divooka.DSL.Plotting.API.DholePlot
Entry point to Dhole's text-based charting DSL.
Remarks
For implementation, we call QuickPlot or do a custom draw with Skia/ScottPlot as appropriate.
(Design Principle) Like Marmaid, Dhole has a curated list of highly useful everyday charts; unlike Mermaid, we don't offer those bullshit formatting options.
Divooka.DSL.Plotting.API.DholePlot.IDholeChartDefinition
Marker interface for Dhole chart definitions
Divooka.DSL.Plotting.API.DholePlot.MindmapDefinition.RawLines
We will store raw lines, parse them into a tree structure later
Divooka.DSL.Plotting.API.DholePlot.MindmapDefinition.ToTreeNode
Convert indentation-based lines into a TreeNode structure for quick drawing.
Divooka.DSL.Plotting.API.DholePlot.KanbanDefinition.Columns
ColumnName => List of tasks
Divooka.DSL.Plotting.API.DholePlot.RadarChartDefinition.Data
Each sub-list is one series
Divooka.DSL.Plotting.API.DholePlot.DrawTextBased()
Parse and render a Dhole DSL script into a PixelImage (the final “plot”).
Parameters
| Name | Description | Default |
|---|---|---|
dholeScript |
Text in Dhole DSL format. |
Returns
PixelImage representing the rendered chart/diagram.
Divooka.DSL.Plotting.API.DholePlot.RenderChart()
Directly renders a strongly typed chart definition without text DSL.
This function branches to the correct chart logic and calls relevant backends.
Parameters
| Name | Description | Default |
|---|---|---|
chart |
Any IDholeChartDefinition object (FlowchartDefinition, PieChartDefinition, etc.) |
Returns
PixelImage of the final rendered chart/diagram.
Divooka.DSL.Plotting.API.DholeParser
Parses the Dhole DSL text into chart definitions.
Divooka.DSL.Plotting.API.DholeParser.Parse()
Parse Dhole DSL that may contain one or more chart blocks.
Returns a list of discovered chart definitions (FlowchartDefinition, TableDefinition, etc.).
Remarks
This simple parser looks for lines that end with ":" to define a chart type. Then collects subsequent lines until the next chart type or end-of-script.
For a more robust implementation, we might prefer a formal approach (like a tokenizer, AST, etc.).
Parameters
| Name | Description | Default |
|---|---|---|
script |
Dhole script. |
Returns
All charts found in the script.
Divooka.DSL.Plotting.API.FlowchartRenderer
Example flowchart renderer using Skia directly (fallback).
Divooka.DSL.Plotting.API.FlowchartRenderer.DrawArrowhead()
Draws a small arrowhead at the "end" of a line (near 'toPos' direction).
We draw a simple V shape; in production, you could do more advanced geometry.
Divooka.DSL.Plotting.API.KanbanRenderer
Example Kanban renderer using a fallback to Skia.
Divooka.DSL.Plotting.API.QuickPlot
Quickly generate plots of all kinds using primitive inputs or DataGrid inputs.
Divooka.DSL.Plotting.API.QuickPlot.DrawVector2D()
PlotVector(s)2D: Draws Vector2D in coordinate grid. Great for educational purpose (when comoaring before and after manipulation).
Parameters
| Name | Description | Default |
|---|---|---|
vector |
||
configurations |
Returns
Divooka.DSL.Plotting.API.QuickPlot.Empty()
Creates an empty space. Useful as placeholders.
Parameters
| Name | Description | Default |
|---|---|---|
width |
||
height |
||
color |
||
transpatent |
Returns
Divooka.DSL.Plotting.API.QuickPlot.NumberDisplay()
Generates a pixel-based image displaying a numeric value with a label.
Parameters
| Name | Description | Default |
|---|---|---|
label |
The label to be displayed alongside the number. | |
number |
The numeric value to display. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted number display.
Divooka.DSL.Plotting.API.QuickPlot.TableDisplay()
Generates a pixel-based image representation of a data table.
Parameters
| Name | Description | Default |
|---|---|---|
table |
The data table to be displayed. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted table display.
Divooka.DSL.Plotting.API.QuickPlot.TextDisplay()
Generates a pixel-based image displaying a single block of text.
Parameters
| Name | Description | Default |
|---|---|---|
text |
The text to be displayed. | |
configuration |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted text display.
Divooka.DSL.Plotting.API.QuickPlot.TextDisplay()
Generates a pixel-based image displaying a title with additional text content.
Parameters
| Name | Description | Default |
|---|---|---|
title |
The title text to be displayed prominently. | |
text |
The accompanying text content. | |
configuration |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted title and text display.
Divooka.DSL.Plotting.API.QuickPlot.TextDisplay()
Generates a pixel-based image displaying a title, subtitle, and additional text content.
Parameters
| Name | Description | Default |
|---|---|---|
title |
The main title to be displayed prominently. | |
subtitle |
The subtitle, positioned below the title. | |
text |
The primary text content to be displayed. | |
configuration |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted title, subtitle, and text display.
Divooka.DSL.Plotting.API.QuickPlot.ScatterPlot()
Generates a scatter plot image for multiple Y-series against a single X-axis.
Parameters
| Name | Description | Default |
|---|---|---|
x |
The X-axis values. | |
ys |
An array of Y-series values corresponding to the X-axis. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the scatter plot with multiple Y-series.
Divooka.DSL.Plotting.API.QuickPlot.ScatterPlot()
Plots numerical columns of data grid as series.
If the first column is DateTime, plot date time chart.
If a column contains null (NaN), just treat that as a missing data point.
Ignore all other irrelevant (non numerical) columns.
Parameters
| Name | Description | Default |
|---|---|---|
dataGrid |
The data grid containing the X and Y values. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the scatter plot generated from the data grid.
Divooka.DSL.Plotting.API.QuickPlot.ScatterPlot()
Generates a scatter plot image for a single X and Y data series.
Parameters
| Name | Description | Default |
|---|---|---|
x |
The X-axis values. | |
y |
The Y-axis values corresponding to the X-axis. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the scatter plot for a single series.
Divooka.DSL.Plotting.API.QuickPlot.ScatterPlotTwoAxes()
Generates a scatter plot image with two separate Y-series sharing the same X-axis.
Parameters
| Name | Description | Default |
|---|---|---|
x |
The X-axis values. | |
y1 |
The first Y-series values. | |
y2 |
The second Y-series values. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the scatter plot with two Y-series.
Divooka.DSL.Plotting.API.QuickPlot.LinePlot()
Generates a pixel-based image of a line plot.
Parameters
| Name | Description | Default |
|---|---|---|
x |
The x-axis values. | |
y |
The y-axis values. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the line plot.
Divooka.DSL.Plotting.API.QuickPlot.BarChart()
Generates a pixel-based image of a bar chart.
Parameters
| Name | Description | Default |
|---|---|---|
values |
The values for each bar in the chart. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the bar chart.
Divooka.DSL.Plotting.API.QuickPlot.Histogram()
Generates a pixel-based image of a histogram.
Parameters
| Name | Description | Default |
|---|---|---|
values |
The values to be grouped into bins for the histogram. | |
configurations |
Optional configurations for binning, styling, and layout. |
Returns
A PixelImage representing the histogram.
Divooka.DSL.Plotting.API.QuickPlot.BubbleChart()
Generates a pixel-based image of a bubble chart.
Parameters
| Name | Description | Default |
|---|---|---|
x |
The x-axis values. | |
y |
The y-axis values. | |
radius |
The radius values determining bubble sizes. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the bubble chart.
Divooka.DSL.Plotting.API.QuickPlot.BubbleChart()
Generates a pixel-based image of a multi-series bubble chart.
Parameters
| Name | Description | Default |
|---|---|---|
xs |
An array of x-axis values for multiple series. | |
ys |
An array of y-axis values for multiple series. | |
radii |
An array of radius values determining bubble sizes for multiple series. | |
configurations |
Optional configurations for styling, series differentiation, and layout. |
Returns
A PixelImage representing the multi-series bubble chart.
Divooka.DSL.Plotting.API.QuickPlot.FunnelChart()
Generates a pixel-based image of a funnel chart.
Parameters
| Name | Description | Default |
|---|---|---|
values |
The values representing each stage of the funnel. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the funnel chart.
Divooka.DSL.Plotting.API.QuickPlot.RadarChart()
Generates a pixel-based image of a radar chart.
Parameters
| Name | Description | Default |
|---|---|---|
values |
An array of values representing multiple axes in the radar chart. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the radar chart.
Divooka.DSL.Plotting.API.QuickPlot.Heatmap()
Plots a heatmap that represents data density or intensity using color gradients.
Ideal for showing patterns or correlations in data matrices.
This plot automatically compresses the entire range of values between its min and max value.
Parameters
| Name | Description | Default |
|---|---|---|
map |
Row-major numerical to be plotted; Each vector represents a single row. | |
configurations |
Optional configurations for color mapping and layout. |
Returns
A PixelImage representing the heatmap.
Divooka.DSL.Plotting.API.QuickPlot.PieChart()
Draw a pie chart from values and category labels.
Parameters
| Name | Description | Default |
|---|---|---|
values |
The numerical values representing the proportions of the pie chart. | |
labels |
Optional labels for each segment of the pie chart. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted pie chart.
Divooka.DSL.Plotting.API.QuickPlot.DonutChart()
Draw a donut chart from values and category labels.
Parameters
| Name | Description | Default |
|---|---|---|
values |
The numerical values representing the proportions of the donut chart. | |
labels |
Optional labels for each segment of the donut chart. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted donut chart.
Divooka.DSL.Plotting.API.QuickPlot.PieChart()
Draw a pie chart from values and category columns from a data grid.
Parameters
| Name | Description | Default |
|---|---|---|
dataGrid |
The data grid containing numerical values and optional labels. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted pie chart.
Divooka.DSL.Plotting.API.QuickPlot.DonutChart()
Draw a donut chart from values and category columns from a data grid.
Parameters
| Name | Description | Default |
|---|---|---|
dataGrid |
The data grid containing numerical values and optional labels. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the formatted donut chart.
Divooka.DSL.Plotting.API.QuickPlot.PopulationPyramid()
Populates a population pyramid by automatically gathering age group.
Parameters
| Name | Description | Default |
|---|---|---|
dataGrid |
The data table containing population data. | |
groups |
The number of age groups to categorize the population. | |
ageColumn |
The column name representing age data. | |
genderColumn |
Assumes there are only two gender options. | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the population pyramid.
Divooka.DSL.Plotting.API.QuickPlot.PopulationPyramid()
Populates a population pyramid by automatically gathering age group
Parameters
| Name | Description | Default |
|---|---|---|
groups |
The number of age groups to categorize the population. | |
maleData |
Raw individual data | |
femaleData |
Raw individual data | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the population pyramid.
Divooka.DSL.Plotting.API.QuickPlot.PopulationPyramid()
Generates a pixel-based population pyramid visualization with custom-defined age groups.
Remarks
Notice a population pyramid devides humans into male and female and might not be a gender neural way to represent diversity within population
Parameters
| Name | Description | Default |
|---|---|---|
ageGroups |
An array of age group labels. | |
maleData |
Data per age group | |
femaleData |
Data per age group | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the population pyramid.
Divooka.DSL.Plotting.API.QuickPlot.PopulationPyramidCentered()
Generates a centered pixel-based population pyramid visualization with custom-defined age groups.
Remarks
Notice a population pyramid devides humans into male and female and might not be a gender neural way to represent diversity within population
Parameters
| Name | Description | Default |
|---|---|---|
ageGroups |
An array of age group labels. | |
maleData |
Data per age group | |
femaleData |
Data per age group | |
configurations |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the centered population pyramid.
Divooka.DSL.Plotting.API.QuickPlot.Timeline()
Simple timeline event.
This chart has no "distance" between events.
Parameters
| Name | Description | Default |
|---|---|---|
anchors |
An array of anchor labels representing timeline points. | |
events |
An array of event descriptions corresponding to each anchor. | |
configuration |
Optional configurations for styling and layout. |
Returns
A PixelImage representing the timeline visualization.
Divooka.DSL.Plotting.API.QuickPlot.Timeline()
Simple timeline event
Parameters
| Name | Description | Default |
|---|---|---|
times |
An array of DateTime values representing timeline points. | |
activities |
An array of activity descriptions corresponding to each time point. | |
configuration |
Configurations for styling and layout. |
Returns
A PixelImage representing the timeline visualization.
Divooka.DSL.Plotting.API.QuickPlot.QRCode()
Generates a pixel-based image representation of a QR code from the given message.
Parameters
| Name | Description | Default |
|---|---|---|
message |
The text or data to encode in the QR code. | |
configurations |
Optional configurations for QR code styling and size. |
Returns
A PixelImage representing the generated QR code.
Divooka.DSL.Plotting.API.QuickPlot.SVG()
Generates a pixel-based image from an SVG source string.
Parameters
| Name | Description | Default |
|---|---|---|
source |
Either file path or raw svg string | |
configurations |
Optional configurations for rendering the SVG. |
Returns
A PixelImage representing the rendered SVG.
Divooka.DSL.Plotting.API.QuickPlot.SVG()
Generates a pixel-based image from an SVG graphics object.
Parameters
| Name | Description | Default |
|---|---|---|
svg |
The SVG graphics object to render. | |
configurations |
Optional configurations for rendering the SVG. |
Returns
A PixelImage representing the rendered SVG graphics.
Divooka.DSL.Plotting.API.QuickPlot.OrganizationTree()
Generates a pixel-based image representation of an organizational tree structure.
Parameters
| Name | Description | Default |
|---|---|---|
root |
The root node of the organizational tree. |
Returns
A PixelImage representing the structured organization tree.
Divooka.DSL.Plotting.API.QuickPlot.DivookaGraph()
Generates an SVG-based graphical representation of a Divooka graph, with specified node positions.
Parameters
| Name | Description | Default |
|---|---|---|
nodes |
An array of Divooka nodes representing the graph structure. | |
positions |
An array of 2D positions corresponding to each node's placement. |
Returns
An SVGGraphics object representing the structured graph visualization.
Divooka.DSL.Plotting.API.QuickPlot.DivookaGraph()
Generates an SVG-based graphical representation of a Divooka graph with automatic node placement.
Parameters
| Name | Description | Default |
|---|---|---|
nodes |
An array of Divooka nodes representing the graph structure. |
Returns
An SVGGraphics object representing the structured graph visualization with auto-arranged nodes.
Divooka.DSL.Plotting.API.QuickPlot.DivookaNode()
Generates an SVG-based graphical representation of an individual Divooka node.
Parameters
| Name | Description | Default |
|---|---|---|
title |
The title or label of the node. | |
inputs |
An array of input labels for the node. | |
outputs |
An array of output labels for the node. |
Returns
An SVGGraphics object representing the styled and structured node visualization.
Divooka.DSL.Plotting.API.QuickPlot.CalculateTicks()
Calculate ticks in the given span that best suits for the axis.
The ticks will fully cover the span and be neat on scale.
Parameters
| Name | Description | Default |
|---|---|---|
low |
The low value of the span | |
high |
The high value of the span | |
nTicks |
The number of ticks |
Returns
Divooka.DSL.Plotting.API.QuickPlot.RepresentLargeNumber()
Give large number representation of the given value.
E.g. 65000 as "65k", 1300000 as "1.3M".
Parameters
| Name | Description | Default |
|---|---|---|
value |
The large number value to be represent |
Returns
Divooka.DSL.Plotting.API.QuickPlot.DrawText()
Draw text on SKCanvas that vertically aligned at the given point (SkiaSharp doesn't
support vertical text alignment and is always bottom aligned). The horizontal alignment
is still as specified in the given SKPaint.
Parameters
| Name | Description | Default |
|---|---|---|
canvas |
The SKCanvas to be drawn on | |
text |
The text to be drawn | |
x |
X position of the text | |
y |
Y position of the text | |
paint |
SKPaint to be used to draw text | |
verticalAlign |
Vertical alignment to be applied |
Divooka.DSL.Plotting.API.QuickPlot.DrawBorder()
Draw a border with the given paint, which is aligned on the center/inside/outside of the given area.
The provided paint must have `isStroke=true` to be drawn as border. Otherwise it will just be drawn as a filled rectangle.
Parameters
| Name | Description | Default |
|---|---|---|
canvas |
The SKCanvas to be drawn on | |
left |
X position of the left bound | |
top |
Y position of the top bound | |
right |
X position of the right bound | |
bottom |
Y position of the bottom bound | |
paint |
SKPaint to be used to draw border | |
alignment |
Alignment of the border |
Divooka.DSL.Plotting.API.QuickPlot.FrameCanvas()
Frame the canvas with a margin space and a title.
If title is not empty, top margin will be extended. Otherwise the margin on each side is all the same.
Note that it will translate and clip the canvas matrix.
Parameters
| Name | Description | Default |
|---|---|---|
canvas |
The SKCanvas to be framed | |
title |
The title of the frame | |
margin |
The margin of the frame |
Divooka.DSL.Plotting.Drawers.OrgChartDrawer.MeasureTreeSize()
Calculate the total width and height needed for the entire tree
Divooka.DSL.Plotting.Drawers.QrCodeHelper.Generate()
Generates an SKBitmap QR code.
Parameters
| Name | Description | Default |
|---|---|---|
content |
Text or URL to encode. | |
imageWidth |
Width and height in pixels (square). | |
dotStyle |
Square or circular modules. | |
foreground |
QR-dot color (default black). | |
background |
Background color (default white). | |
centerImage |
Optional logo/bitmap at center. |
Returns
SKBitmap containing the QR code.
Divooka.DSL.Plotting.Drawers.QrCodeHelper.IsInFinderPattern()
Finder patterns occupy 7×7 modules (indices 0–6) plus their mandatory 1-module quiet zone (index 7) on each side.
Divooka.DSL.Plotting.Drawers.Types.VerticalFlow.#ctor()
Initialize a vertical flow layout with a list of elements. Elements are translated to stack vertically.
Divooka.DSL.Plotting.Drawers.Types.SVGGroupHorizontalFlow.#ctor()
Initialize a horizontal flow layout with a list of elements. Elements are translated to stack horizontally.
Divooka.DSL.Plotting.Drawers.Types.SVGDivookaGraphElement.#ctor()
Build a node graph from a list of ZoraNodeElements. Connections are automatically located.
If ConnectionsOnly is true, only connections are drawn. This is useful
when you want to add nodes in other ways.
Divooka.DSL.Plotting.Utilities.StatisticalFacts
Plots statistical facts, used for demonstration purpose
Divooka.DSL.Plotting.Utilities.StatisticalFacts.PlotNormalDistribution()
Generates and plots a normal distribution histogram.
Parameters
| Name | Description | Default |
|---|---|---|
values |
An array to store the generated normal distribution values. | |
count |
The number of samples to generate. | |
mean |
The mean of the normal distribution. | |
standardDeviation |
The standard deviation of the normal distribution. |
Returns
A Divooka.Multimedia.Image.PixelImage containing the plotted normal distribution.
Divooka.DSL.Plotting.Utilities.StatisticalFacts.PlotUniformDistribution()
Generates and plots a uniform distribution histogram.
Parameters
| Name | Description | Default |
|---|---|---|
values |
An array to store the generated uniform distribution values. | |
count |
The number of samples to generate. | |
min |
The minimum value of the uniform distribution. | |
max |
The maximum value of the uniform distribution. |
Returns
A Divooka.Multimedia.Image.PixelImage containing the plotted uniform distribution.
Divooka.DSL.Plotting.Utilities.StatisticalFacts.PlotRandomWalk()
Generates and plots a random walk sequence as scatter plot.
Parameters
| Name | Description | Default |
|---|---|---|
values |
An array to store the generated random walk values. | |
count |
The number of steps in the random walk. | |
multiply |
A multiplier applied to the random walk values. | |
offset |
An offset applied to the random walk values. |
Returns
A Divooka.Multimedia.Image.PixelImage containing the plotted random walk.
Divooka.DSL.Plotting.Utilities.StatisticalFacts.PlotSinusoidalWave()
Generates and plots a sinusoidal wave between [-1, 1] as scatter plot.
Parameters
| Name | Description | Default |
|---|---|---|
values |
An array to store the generated sinusoidal wave values. | |
count |
The number of points in the sinusoidal wave. | |
multiply |
A multiplier applied to the sinusoidal function. | |
offset |
An offset applied to the sinusoidal function. |
Returns
A Divooka.Multimedia.Image.PixelImage containing the plotted sinusoidal wave.
Divooka.DSL.Plotting.Utilities.StatisticalFacts.PlotCosineWave()
Generates and plots a cosine wave between [-1, 1] as scatter plot.
Parameters
| Name | Description | Default |
|---|---|---|
values |
An array to store the generated cosine wave values. | |
count |
The number of points in the cosine wave. | |
multiply |
A multiplier applied to the cosine function. | |
offset |
An offset applied to the cosine function. |
Returns
A Divooka.Multimedia.Image.PixelImage containing the plotted cosine wave.