class SorensenDiceCoefficient

Computes the Sørensen–Dice coefficient, a statistic used to evaluate the similarity between two strings.

Methods

__construct(string $left, string $right)

No description

static float
computeFor(string $left, string $right)

Allows to directly compute the coefficient between two strings.

float
compute()

No description

Details

at line 32
__construct(string $left, string $right)

No description

Parameters

string $left

The first string to compare

string $right

The second string to compare

at line 45
static float computeFor(string $left, string $right)

Allows to directly compute the coefficient between two strings.

Parameters

string $left

The first string to compare

string $right

The second string to compare

Return Value

float

The Sørensen–Dice coefficient for the two specified strings.

at line 58
float compute()

No description

Return Value

float

The Sørensen–Dice coefficient.