Class IndexProperties
This class stores the properties of a particular index.
THIS CLASS DOES NOT STORE THE VALUE OF THE INDEX - the value is stored in class IndexValues.
This class stores default values, normalisation bounds and provides methods for the correct display of a SUMMARY INDEX in a tracks image.
Display of SPECTRAL INDICES is handled in the class LDSpectrogramRGB.
Inheritance
IndexProperties
Assembly: AudioAnalysisTools.dll
public class IndexProperties
Constructors
|
Improve this Doc
View Source
Initializes a new instance of the IndexProperties class.
constructor sets default values.
Declaration
Properties
|
Improve this Doc
View Source
Declaration
public bool CalculateNormBounds { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[JsonIgnore]
public string Comment { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string DataType { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double DefaultValue { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[YamlIgnore]
[JsonIgnore]
public object DefaultValueCasted { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool DoDisplay { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[YamlIgnore]
[JsonIgnore]
public bool IsSpectralIndex { get; }
Property Value
|
Improve this Doc
View Source
Declaration
[JsonIgnore]
public string Key { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[JsonIgnore]
public string Name { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double NormMax { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double NormMin { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[YamlIgnore]
[JsonIgnore]
public int Order { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[JsonIgnore]
public string ProjectId { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
[JsonIgnore]
public string Units { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Loads the IndexProperties config file, specified by the property IndexPropertiesConfig
defined on configuration
which may be found
relative to the original parent config file ConfigPath.
Declaration
public static FileInfo Find(IIndexPropertyReferenceConfiguration configuration)
Parameters
Returns
Type |
Description |
FileInfo |
null if configuration is null or empty, otherwise a reference to
the desired config file.
|
Exceptions
|
Improve this Doc
View Source
Loads the IndexProperties config file, specified by relativePath
which may be found
relative to the original config file originalConfigFile
.
Declaration
public static FileInfo Find(string relativePath, FileInfo originalConfigFile)
Parameters
Type |
Name |
Description |
String |
relativePath |
The path to the config file to find.
If it is not rooted it is treated as relative to the originalConfigFile 's directory.
|
FileInfo |
originalConfigFile |
The config file were the path to relativePath was originally extracted.
|
Returns
Type |
Description |
FileInfo |
null if relativePath is null or empty, otherwise a reference to
the desired config file.
|
Exceptions
|
Improve this Doc
View Source
Returns a cached set of configuration properties.
WARNING CACHED!.
Declaration
public static IndexPropertiesCollection GetIndexProperties(FileInfo configFile)
Parameters
Type |
Name |
Description |
FileInfo |
configFile |
|
Returns
|
Improve this Doc
View Source
Units for indices include: dB, ms, % and dimensionless.
Declaration
public string GetPlotAnnotation()
Returns
|
Improve this Doc
View Source
This method called from Indexdisplay.DrawImageOfSummaryIndices().
It draws a single plot/track of one summary index.
Declaration
public Image<Rgb24> GetPlotImage(double[] array, Color backgroundColour, List<GapsAndJoins> errors = null)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public Image<Rgb24> GetPlotImage(double[] array, List<GapsAndJoins> errors = null)
Parameters
Returns
Type |
Description |
SixLabors.ImageSharp.Image<SixLabors.ImageSharp.PixelFormats.Rgb24> |
|
|
Improve this Doc
View Source
Declaration
public double NormaliseValue(double value)
Parameters
Type |
Name |
Description |
Double |
value |
|
Returns
Extension Methods