Show / Hide Table of Contents

Class ParameterSweep

A sweep of a property of an entity.

Inheritance
object
ParameterSet
ParameterSweep
Implements
ISweep
IParameterSet
ICloneable<ISweep>
Inherited Members
ParameterSet.SetParameter<P>(string, P)
ParameterSet.TrySetParameter<P>(string, P)
ParameterSet.GetProperty<P>(string)
ParameterSet.TryGetProperty<P>(string, out P)
ParameterSet.CreateParameterSetter<P>(string)
ParameterSet.CreatePropertyGetter<P>(string)
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 class ParameterSweep : ParameterSet, ISweep, IParameterSet, ICloneable<ISweep>

Constructors

ParameterSweep(string, IEnumerable<double>)

Initializes a new instance of the ParameterSweep class.

Declaration
public ParameterSweep(string name, IEnumerable<double> points)
Parameters
Type Name Description
string name

The name of the entity.

IEnumerable<double> points

The points.

Exceptions
Type Condition
ArgumentNullException

Thrown if name or points is null.

ParameterSweep(string, string, IEnumerable<double>)

Initializes a new instance of the ParameterSweep class.

Declaration
public ParameterSweep(string name, string property, IEnumerable<double> points)
Parameters
Type Name Description
string name

The name of the entity.

string property

The property name.

IEnumerable<double> points

The points.

ParameterSweep(string, string, IEnumerable<double>, Action<IBehaviorContainer>)

Initializes a new instance of the ParameterSweep class.

Declaration
public ParameterSweep(string name, string property, IEnumerable<double> points, Action<IBehaviorContainer> update)
Parameters
Type Name Description
string name

The name.

string property

The property.

IEnumerable<double> points

The points.

Action<IBehaviorContainer> update

The method used to update the entity.

Properties

Name

Gets the name of the sweep.

Declaration
public string Name { get; }
Property Value
Type Description
string

The name of the sweep.

Points

Gets or sets the points to apply.

Declaration
public IEnumerable<double> Points { get; }
Property Value
Type Description
IEnumerable<double>

The points to apply.

Property

Gets the property that needs to be swept.

Declaration
public string Property { get; }
Property Value
Type Description
string

The property to be swept.

Update

Gets the method called when the value has been updated.

Declaration
public Action<IBehaviorContainer> Update { get; }
Property Value
Type Description
Action<IBehaviorContainer>

The update method.

Methods

Clone()

Clones the instance.

Declaration
public ISweep Clone()
Returns
Type Description
ISweep

The cloned instance.

CreatePoints(IBiasingSimulation)

Creates an enumerable that can sweep properties of the simulation.

Declaration
public IEnumerator<double> CreatePoints(IBiasingSimulation simulation)
Parameters
Type Name Description
IBiasingSimulation simulation

The simulation to create the points for.

Returns
Type Description
IEnumerator<double>

The created sweep points.

Implements

ISweep
IParameterSet
ICloneable<T>

Extension Methods

Documentation.ParameterValues<T>(IParameterSet, bool)
Documentation.Parameters(IParameterSet)
Utility.ThrowIfNull<T>(T, string)

See Also

ParameterSet
ISweep
In this article
Back to top Generated by DocFX