Show / Hide Table of Contents

Class NoiseSource

A basic implementation of a INoiseSource.

Inheritance
object
NoiseSource
NoiseGain
NoiseShot
NoiseThermal
Implements
INoiseSource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 name is null.

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 state is null.

ArgumentException

Thrown if the simulation state does not store enough points in history.

Implements

INoiseSource

Extension Methods

Utility.ThrowIfNull<T>(T, string)

See Also

INoiseSource
In this article
Back to top Generated by DocFX