Class NoiseSource
A basic implementation of a INoiseSource.
Implements
Inherited Members
Namespace: SpiceSharp.Simulations
Assembly: SpiceSharp.dll
Syntax
public abstract class NoiseSource : INoiseSource
Constructors
NoiseSource(string)
Initializes a new instance of the NoiseSource class.
Declaration
protected NoiseSource(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the noise source. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
Properties
Name
Gets the name of the noise source.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string | The name of the noise source. |
OutputNoiseDensity
Gets the last calculated noise density.
Declaration
public double OutputNoiseDensity { get; protected set; }
Property Value
Type | Description |
---|---|
double | The last calculated noise density. |
TotalInputNoise
Gets the total integrated input noise.
Declaration
public double TotalInputNoise { get; }
Property Value
Type | Description |
---|---|
double | The total integrated input noise. |
TotalOutputNoise
Gets the total integrated output noise.
Declaration
public double TotalOutputNoise { get; }
Property Value
Type | Description |
---|---|
double | The total integrated output noise. |
Methods
Initialize()
Resets all the integrated noise, and uses the output noise density as the initial point.
Declaration
public virtual void Initialize()
Integrate(INoiseSimulationState)
Integrates the noise density into the total integrated noise figures. It computes the integration assuming that noise = a * frequency^exponent. It automatically tracks the noise density from one point to the next.
Declaration
public virtual void Integrate(INoiseSimulationState state)
Parameters
Type | Name | Description |
---|---|---|
INoiseSimulationState | state | The noise simulation state. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown if |
ArgumentException | Thrown if the simulation state does not store enough points in history. |