24 package org.lightjason.agentspeak.consistency.metric;
29 import java.util.stream.Collectors;
30 import java.util.stream.Stream;
64 public final Double
apply(
final Stream<? extends ITerm> p_first,
final Stream<? extends ITerm> p_second )
68 p_first.map( Object::toString ).collect( Collectors.joining(
"" ) ),
69 p_second.map( Object::toString ).collect( Collectors.joining(
"" ) )
final Double apply(final Stream<? extends ITerm > p_first, final Stream<? extends ITerm > p_second)
metric interface of the coherency structure
common structure for execution definition
CNCD(final CCommon.ECompression p_compression)
ctor
final CCommon.ECompression m_compression
compression algorithm
static double ncd( @Nonnull final ECompression p_compression, @Nonnull final String p_first, @Nonnull final String p_second)
normalized-compression-distance
metric based on the normalized-compression-distance