C# Class Toxic.MetricsParser

Mostra file Open project: christianblunden/toxicity-cs Class Usage Examples

Public Properties

Property Type Description
Threasholds Threashold>.Dictionary
generatedFiles string[]
threasholdLimits double>.Dictionary

Public Methods

Method Description
IsNotGenerated ( System.Xml.Linq.XElement node ) : bool
MemberToxicityFor ( string metricName, double threshold, IEnumerable metrics ) : double
MetricIsAboveThreashold ( Dictionary,System.Collections.Generic value ) : bool
Metrics ( System.Xml.Linq.XElement typeNode ) : Dictionary,System.Collections.Generic
Normalise ( double value, double threshold ) : double
Parse ( System.Xml.Linq.XDocument inputDoc ) : IEnumerable

Method Details

IsNotGenerated() public static method

public static IsNotGenerated ( System.Xml.Linq.XElement node ) : bool
node System.Xml.Linq.XElement
return bool

MemberToxicityFor() public static method

public static MemberToxicityFor ( string metricName, double threshold, IEnumerable metrics ) : double
metricName string
threshold double
metrics IEnumerable
return double

MetricIsAboveThreashold() public static method

public static MetricIsAboveThreashold ( Dictionary,System.Collections.Generic value ) : bool
value Dictionary,System.Collections.Generic
return bool

Metrics() public static method

public static Metrics ( System.Xml.Linq.XElement typeNode ) : Dictionary,System.Collections.Generic
typeNode System.Xml.Linq.XElement
return Dictionary,System.Collections.Generic

Normalise() public static method

public static Normalise ( double value, double threshold ) : double
value double
threshold double
return double

Parse() public method

public Parse ( System.Xml.Linq.XDocument inputDoc ) : IEnumerable
inputDoc System.Xml.Linq.XDocument
return IEnumerable

Property Details

Threasholds public_oe static_oe property

public static Dictionary Threasholds
return Threashold>.Dictionary

generatedFiles public_oe static_oe property

public static string[] generatedFiles
return string[]

threasholdLimits public_oe static_oe property

public static Dictionary threasholdLimits
return double>.Dictionary