Record Class SyntacticComplexity.ComplexityMetrics
java.lang.Object
java.lang.Record
org.episteme.social.linguistics.SyntacticComplexity.ComplexityMetrics
- Enclosing class:
SyntacticComplexity
public static record SyntacticComplexity.ComplexityMetrics(double meanLengthOfClause, double clausesPerSentence, double tUnitLength, double complexTUnitRatio, double dependencyDistance)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionComplexityMetrics(double meanLengthOfClause, double clausesPerSentence, double tUnitLength, double complexTUnitRatio, double dependencyDistance) Creates an instance of aComplexityMetricsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theclausesPerSentencerecord component.doubleReturns the value of thecomplexTUnitRatiorecord component.doubleReturns the value of thedependencyDistancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themeanLengthOfClauserecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of thetUnitLengthrecord component.
-
Constructor Details
-
ComplexityMetrics
public ComplexityMetrics(double meanLengthOfClause, double clausesPerSentence, double tUnitLength, double complexTUnitRatio, double dependencyDistance) Creates an instance of aComplexityMetricsrecord class.- Parameters:
meanLengthOfClause- the value for themeanLengthOfClauserecord componentclausesPerSentence- the value for theclausesPerSentencerecord componenttUnitLength- the value for thetUnitLengthrecord componentcomplexTUnitRatio- the value for thecomplexTUnitRatiorecord componentdependencyDistance- the value for thedependencyDistancerecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
meanLengthOfClause
public double meanLengthOfClause()Returns the value of themeanLengthOfClauserecord component.- Returns:
- the value of the
meanLengthOfClauserecord component
-
clausesPerSentence
public double clausesPerSentence()Returns the value of theclausesPerSentencerecord component.- Returns:
- the value of the
clausesPerSentencerecord component
-
tUnitLength
public double tUnitLength()Returns the value of thetUnitLengthrecord component.- Returns:
- the value of the
tUnitLengthrecord component
-
complexTUnitRatio
public double complexTUnitRatio()Returns the value of thecomplexTUnitRatiorecord component.- Returns:
- the value of the
complexTUnitRatiorecord component
-
dependencyDistance
public double dependencyDistance()Returns the value of thedependencyDistancerecord component.- Returns:
- the value of the
dependencyDistancerecord component
-