Search Results for

    Show / Hide Table of Contents

    Class GraphsAndCharts

    Inheritance
    Object
    GraphsAndCharts
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: TowseyLibrary
    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
    Type Name Description
    Double[] rawdata
    String label
    FileInfo file
    | 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
    Type Name Description
    String label
    Double[] normalisedData
    Int32 imageHeight
    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
    Type Name Description
    String label
    Double[] histogram
    Int32 imageWidth
    Int32 height
    Int32 scalingFactor
    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
    Type Name Description
    String label
    Int32[] histogram
    Int32 upperPercentileBin
    Dictionary<String, Double> statistics
    Int32 imageWidth
    Int32 height
    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
    Type Name Description
    List<Plot> plots
    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
    Type Name Description
    Double[] signal
    Int32 sr
    TimeSpan startTime
    Double[] fftSpectrum
    Int32 maxHz
    Double[] scores
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    DrawWaveform(String, Double[])

    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
    Type Name Description
    String label
    Double[] signal
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    DrawWaveform(String, Double[], Double)

    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
    Type Name Description
    String label
    Double[] signal
    Double scalingFactor
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    | Improve this Doc View Source

    DrawWaveform(String, Double[], Int32, Int32, Double)

    Asumes signal is between -1 and +1.

    Declaration
    public static Image<Rgb24> DrawWaveform(string label, double[] signal, int imageWidth, int height, double scalingFactor)
    Parameters
    Type Name Description
    String label
    Double[] signal
    Int32 imageWidth
    Int32 height
    Double scalingFactor
    Returns
    Type Description
    SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24>
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • DrawGraph(Double[], String, FileInfo)
      • DrawGraph(String, Double[], Int32)
      • DrawGraph(String, Double[], Int32, Int32, Int32)
      • DrawHistogram(String, Int32[], Int32, Dictionary<String, Double>, Int32, Int32)
      • DrawPlotDistributions(List<Plot>)
      • DrawWaveAndFft(Double[], Int32, TimeSpan, Double[], Int32, Double[])
      • DrawWaveform(String, Double[])
      • DrawWaveform(String, Double[], Double)
      • DrawWaveform(String, Double[], Int32, Int32, Double)
    Generated by DocFX AP docs version: 21.7.0.4-master-e26127a50d7bd7472d47288f10e61014fb981f7f-DIRTY-CI:144 Back to top