UMinho Haskell Libraries (1.0)ContentsIndex
Language.Sdf.Metrics.Structure
Portability portable
Stability experimental
Maintainer Tiago Alves and Joost Visser
Contents
Defined data structures
Metric calculation functions
Description
Metrics regarding the structure and complexity of Sdf grammars.
Synopsis
data StructMetrics = StructMetrics {
timp :: Float
lev :: Int
clev :: Float
nslev :: Int
dep :: Int
hei :: Int
}
calcStructMetrics :: SDF -> StructMetrics
structMetrics :: StructMetrics -> GroupMetric
Defined data structures
data StructMetrics
Record which holds all structural metrics
Constructors
StructMetrics
timp :: FloatTree Impurity
lev :: IntCount of levels (LEV)
clev :: FloatNormalized count of levels (CLEV)
nslev :: IntNumber of non-singleton levels (NSLEV)
dep :: IntSize of largest level (DEP)
hei :: IntMaximum height of the graph (HEI)
Metric calculation functions
calcStructMetrics :: SDF -> StructMetrics
Calculate structural metrics
structMetrics :: StructMetrics -> GroupMetric
Creates a uniform representation of the metrics converting the internal StructMetrics record to a GroupMetric type which holds not only all the calculated metric values but also all information about the metrics: description and name.
Produced by Haddock version 0.6