Show / Hide Table of Contents

Class Curve

Curve.

Inheritance
System.Object
Curve
Cdf
Pdf
Implements
System.Collections.Generic.IEnumerable<Point>
System.Collections.IEnumerable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: SpiceSharpParser.Common.Mathematics.Probability
Assembly: SpiceSharpParser.dll
Syntax
public class Curve : IEnumerable<Point>, IEnumerable

Constructors

| Improve this Doc View Source

Curve()

Initializes a new instance of the Curve class.

Declaration
public Curve()

Properties

| Improve this Doc View Source

Item[Int32]

Gets or sets a point.

Declaration
public Point this[int index] { get; }
Parameters
Type Name Description
System.Int32 index

Point index.

Property Value
Type Description
Point

A curve's point.

| Improve this Doc View Source

Points

Declaration
public List<Point> Points { get; protected set; }
Property Value
Type Description
System.Collections.Generic.List<Point>
| Improve this Doc View Source

PointsCount

Gets the count of points.

Declaration
public int PointsCount { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Add(Point)

Adds a point to the curve.

Declaration
public void Add(Point point)
Parameters
Type Name Description
Point point

A point.

| Improve this Doc View Source

Clear()

Clears the points.

Declaration
public void Clear()
| Improve this Doc View Source

Clone()

Clones the curve.

Declaration
public Curve Clone()
Returns
Type Description
Curve

A cloned curve.

| Improve this Doc View Source

ComputeAreaUnderCurve()

Computes the area under the curve.

Declaration
public double ComputeAreaUnderCurve()
Returns
Type Description
System.Double

The area under curve.

| Improve this Doc View Source

ComputeAreaUnderCurve(Double)

Computes the area under the curve.

Declaration
public double ComputeAreaUnderCurve(double x)
Parameters
Type Name Description
System.Double x

X value of last point.

Returns
Type Description
System.Double

The area under curve.

| Improve this Doc View Source

ComputeAreaUnderCurve(Int32)

Computes the area under the curve.

Declaration
public double ComputeAreaUnderCurve(int limitPointIndex)
Parameters
Type Name Description
System.Int32 limitPointIndex

Index of last point.

Returns
Type Description
System.Double

The area under curve.

| Improve this Doc View Source

GetEnumerator()

Gets the enumerator.

Declaration
public IEnumerator<Point> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<Point>

The enumerator of points.

| Improve this Doc View Source

GetFirstPoint()

Gets the first point.

Declaration
public Point GetFirstPoint()
Returns
Type Description
Point

The first point.

| Improve this Doc View Source

GetLastPoint()

Gets the last point.

Declaration
public Point GetLastPoint()
Returns
Type Description
Point

The last point.

| Improve this Doc View Source

ScaleY(Double)

Scales the curve.

Declaration
public void ScaleY(double scaleFactor)
Parameters
Type Name Description
System.Double scaleFactor

Scaling factor.

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Gets the enumerator.

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

The enumerator.

Implements

System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX