Record Class ForgeryDetector.BrushstrokeProfile
java.lang.Object
java.lang.Record
org.episteme.social.arts.ForgeryDetector.BrushstrokeProfile
- All Implemented Interfaces:
Serializable
- Enclosing class:
ForgeryDetector
public static record ForgeryDetector.BrushstrokeProfile(double avgLength, double avgWidth, double avgPressure, double directionVariance, double curveFrequency, int strokeCount)
extends Record
implements Serializable
Represents a mathematical signature of brushstroke characteristics.
- Since:
- 1.0
- Version:
- 2.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBrushstrokeProfile(double avgLength, double avgWidth, double avgPressure, double directionVariance, double curveFrequency, int strokeCount) Creates an instance of aBrushstrokeProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theavgLengthrecord component.doubleReturns the value of theavgPressurerecord component.doubleavgWidth()Returns the value of theavgWidthrecord component.doubleReturns the value of thecurveFrequencyrecord component.doubleReturns the value of thedirectionVariancerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestrokeCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BrushstrokeProfile
public BrushstrokeProfile(double avgLength, double avgWidth, double avgPressure, double directionVariance, double curveFrequency, int strokeCount) Creates an instance of aBrushstrokeProfilerecord class.- Parameters:
avgLength- the value for theavgLengthrecord componentavgWidth- the value for theavgWidthrecord componentavgPressure- the value for theavgPressurerecord componentdirectionVariance- the value for thedirectionVariancerecord componentcurveFrequency- the value for thecurveFrequencyrecord componentstrokeCount- the value for thestrokeCountrecord 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. -
avgLength
public double avgLength()Returns the value of theavgLengthrecord component.- Returns:
- the value of the
avgLengthrecord component
-
avgWidth
public double avgWidth()Returns the value of theavgWidthrecord component.- Returns:
- the value of the
avgWidthrecord component
-
avgPressure
public double avgPressure()Returns the value of theavgPressurerecord component.- Returns:
- the value of the
avgPressurerecord component
-
directionVariance
public double directionVariance()Returns the value of thedirectionVariancerecord component.- Returns:
- the value of the
directionVariancerecord component
-
curveFrequency
public double curveFrequency()Returns the value of thecurveFrequencyrecord component.- Returns:
- the value of the
curveFrequencyrecord component
-
strokeCount
public int strokeCount()Returns the value of thestrokeCountrecord component.- Returns:
- the value of the
strokeCountrecord component
-