LexorankEx (lexorank_ex v0.1.4)

Link to this section Summary

Functions

Returns middle point between two strings.

Returns the distance between two values

The result is a middle rank for NumerialSystem with radix == 62

Returns next lexically greater value for provided rank

Returns next lexically lesser value for provided rank

Link to this section Functions

Link to this function

between(string, string)

Returns middle point between two strings.

between("a", "c") => "b"

between("a", "b") => "aV"

Link to this function

distance(left, right)

Returns the distance between two values

Link to this function

maximum_value(division \\ 1)

Link to this function

middle(division)

The result is a middle rank for NumerialSystem with radix == 62

Link to this function

minimum_value(division \\ 1)

Link to this function

next(rank, step \\ 8)

Returns next lexically greater value for provided rank

LexorankEx.next("a") => "i" default step is 8

LexorankEx.next("a", step = 1) => "b"

Link to this function

prev(rank, step \\ 8)

Returns next lexically lesser value for provided rank

LexorankEx.prev("i") => "a" default step is 8

LexorankEx.prev("b", step = 1) => "a"