Search Results for

    Show / Hide Table of Contents

    Class WaveformBuilder

    Utility for constructing charge-balanced stimulation waveforms. Given a cathodic shape, it computes a matching anodic recharge segment and exposes helpers to retrieve shapes and total area.

    Inheritance
    object
    WaveformBuilder
    Namespace: Wss.CoreModule
    Assembly: WSS_Core_Interface.dll
    Syntax
    public class WaveformBuilder

    Constructors

    WaveformBuilder(int[])

    Initializes a builder from a cathodic waveform and computes a recharge segment with equal area.

    Declaration
    public WaveformBuilder(int[] catWaveform)
    Parameters
    Type Name Description
    int[] catWaveform

    Cathodic samples (length 32).

    WaveformBuilder(Waveform)

    Initializes a builder from an existing Waveform.

    Declaration
    public WaveformBuilder(Waveform wave)
    Parameters
    Type Name Description
    Waveform wave

    Existing waveform instance.

    Methods

    getAnodicShapeArray()

    Returns the computed anodic (recharge) shape array.

    Declaration
    public int[] getAnodicShapeArray()
    Returns
    Type Description
    int[]

    getArea()

    Returns the total area computed for the cathodic waveform.

    Declaration
    public float getArea()
    Returns
    Type Description
    float

    getCatShapeArray()

    Returns the cathodic (primary) shape array.

    Declaration
    public int[] getCatShapeArray()
    Returns
    Type Description
    int[]

    getWave()

    Builds the immutable Waveform instance with current shapes and area.

    Declaration
    public Waveform getWave()
    Returns
    Type Description
    Waveform
    In this article
    Back to top Generated by DocFX