Class GraphsAndCharts
Inheritance
GraphsAndCharts
Assembly: TowseyLibrary.dll
Syntax
public static class GraphsAndCharts
Methods
|
Improve this Doc
View Source
DrawGraph(Double[], String, FileInfo)
Declaration
public static void DrawGraph(double[] rawdata, string label, FileInfo file)
Parameters
|
Improve this Doc
View Source
DrawGraph(String, Double[], Int32)
Assumes passed data has been normalised in 0,1.
Declaration
public static Image<Rgb24> DrawGraph(string label, double[] normalisedData, int imageHeight)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
DrawGraph(String, Double[], Int32, Int32, Int32)
Declaration
public static Image<Rgb24> DrawGraph(string label, double[] histogram, int imageWidth, int height, int scalingFactor)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
DrawHistogram(String, Int32[], Int32, Dictionary<String, Double>, Int32, Int32)
Declaration
public static Image<Rgb24> DrawHistogram(string label, int[] histogram, int upperPercentileBin, Dictionary<string, double> statistics, int imageWidth, int height)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
DrawPlotDistributions(List<Plot>)
Declaration
public static List<Image<Rgb24>> DrawPlotDistributions(List<Plot> plots)
Parameters
Returns
Type |
Description |
List<SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>> |
|
|
Improve this Doc
View Source
DrawWaveAndFft(Double[], Int32, TimeSpan, Double[], Int32, Double[])
Declaration
public static Image<Rgb24> DrawWaveAndFft(double[] signal, int sr, TimeSpan startTime, double[] fftSpectrum, int maxHz, double[] scores)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
This method places startTime in the centre of the waveform image and then cuts out buffer on either side.
Declaration
public static Image<Rgb24> DrawWaveform(string label, double[] signal)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
This method places startTime in the centre of the waveform image and then cuts out buffer on either side.
Declaration
public static Image<Rgb24> DrawWaveform(string label, double[] signal, double scalingFactor)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Asumes signal is between -1 and +1.
Declaration
public static Image<Rgb24> DrawWaveform(string label, double[] signal, int imageWidth, int height, double scalingFactor)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|