LightJason - AgentSpeak(L++)
org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance Class Reference

metric based on levenshtein distance More...

+ Inheritance diagram for org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance:
+ Collaboration diagram for org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance:

Public Member Functions

 CLevenshteinDistance ()
 ctor More...
 
 CLevenshteinDistance (final double p_insertweight, final double p_replaceweight, final double p_deleteweight)
 ctor More...
 
final Double apply (final Stream<? extends ITerm > p_first, final Stream<? extends ITerm > p_second)
 

Private Attributes

final double m_deleteweight
 cost / weight of delete operation More...
 
final double m_insertweight
 cost / weight of insert operation More...
 
final double m_replaceweight
 cost / weight of replace operation More...
 

Detailed Description

Constructor & Destructor Documentation

◆ CLevenshteinDistance() [1/2]

org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance.CLevenshteinDistance ( )

Definition at line 57 of file CLevenshteinDistance.java.

◆ CLevenshteinDistance() [2/2]

org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance.CLevenshteinDistance ( final double  p_insertweight,
final double  p_replaceweight,
final double  p_deleteweight 
)
Parameters
p_insertweightweight / cost of insert character
p_replaceweightweight / cost of replace character
p_deleteweightweight / cost of delete character

Definition at line 69 of file CLevenshteinDistance.java.

Member Function Documentation

◆ apply()

final Double org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance.apply ( final Stream<? extends ITerm p_first,
final Stream<? extends ITerm p_second 
)

Definition at line 78 of file CLevenshteinDistance.java.

References org.lightjason.agentspeak.language.CCommon.levenshtein().

+ Here is the call graph for this function:

Member Data Documentation

◆ m_deleteweight

final double org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance.m_deleteweight
private

Definition at line 52 of file CLevenshteinDistance.java.

◆ m_insertweight

final double org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance.m_insertweight
private

Definition at line 44 of file CLevenshteinDistance.java.

◆ m_replaceweight

final double org.lightjason.agentspeak.consistency.metric.CLevenshteinDistance.m_replaceweight
private

Definition at line 48 of file CLevenshteinDistance.java.