Bånder

HammingDistance
in package
implements AlgorithmInterface

Table of Contents

Interfaces

AlgorithmInterface

Properties

$a  : string
$b  : string
$returnDistance  : bool

Methods

__construct()  : mixed
calculate()  : mixed
forFeatureArrays()  : float

Properties

Methods

__construct()

public __construct(string $a, string $b[, bool $returnDistance = false ]) : mixed
Parameters
$a : string
$b : string
$returnDistance : bool = false

forFeatureArrays()

public static forFeatureArrays(array<string|int, mixed> $a, array<string|int, mixed> $b) : float
Parameters
$a : array<string|int, mixed>
$b : array<string|int, mixed>
Return values
float

        
On this page

Search results