|
Language.Sdf.Metrics.Structure | Portability | portable
| Stability | experimental
| Maintainer | Tiago Alves and Joost Visser
|
|
|
|
|
|
Description |
Metrics regarding the structure and complexity of Sdf grammars.
|
|
Synopsis |
|
|
|
|
Defined data structures |
|
data StructMetrics |
Record which holds all structural metrics | Constructors | StructMetrics | | timp :: Float | Tree Impurity | lev :: Int | Count of levels (LEV) | clev :: Float | Normalized count of levels (CLEV) | nslev :: Int | Number of non-singleton levels (NSLEV) | dep :: Int | Size of largest level (DEP) | hei :: Int | Maximum 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 |