Avalonia Code OnlyItaliano

API › RAVAL

RComplexSeries class

public sealed class RComplexSeries

A curve of complex numbers (one per frequency) for RSmithChart and RPolarChart.

Constructors

RComplexSeries(string name, Complex[] points, double[] frequencies = null, int color = 0)

A curve with its frequencies (or none); the color is the i-th of RColor.Palette.

Properties

string Name { get; }

The name, in the legend ("" keeps it out).

Complex[] Points { get; }

The points: Γ on the Smith chart, any complex on the polar one.

double[] Frequencies { get; }

The frequencies of the points, Hz (empty: none written).

IBrush Brush { get; set; }

The color.

bool Dashed { get; set; }

Whether it is dashed (a measurement).

double Thickness { get; set; }

The line thickness, pixels.

Methods

static RComplexSeries Pattern(string name, double[] degrees, double[] values, bool decibels, int color = 0)

A radiation pattern: a value for each angle in degrees, in dB if decibels (as the gain of an antenna), linear otherwise. The polar chart draws it at its angle.