PHP Класс Phpml\Clustering\KMeans\Point

Наследование: implements ArrayAcces\ArrayAccess
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$coordinates array
$dimension integer

Открытые методы

Метод Описание
__construct ( array $coordinates )
getClosest ( $points ) : mixed
getCoordinates ( ) : array
getDistanceWith ( self $point, boolean $precise = true ) : integer | mixed
offsetExists ( mixed $offset ) : boolean
offsetGet ( mixed $offset ) : mixed
offsetSet ( mixed $offset, mixed $value )
offsetUnset ( mixed $offset )
toArray ( ) : array

Описание методов

__construct() публичный метод

public __construct ( array $coordinates )
$coordinates array

getClosest() публичный метод

public getClosest ( $points ) : mixed
$points
Результат mixed

getCoordinates() публичный метод

public getCoordinates ( ) : array
Результат array

getDistanceWith() публичный метод

public getDistanceWith ( self $point, boolean $precise = true ) : integer | mixed
$point self
$precise boolean
Результат integer | mixed

offsetExists() публичный метод

public offsetExists ( mixed $offset ) : boolean
$offset mixed
Результат boolean

offsetGet() публичный метод

public offsetGet ( mixed $offset ) : mixed
$offset mixed
Результат mixed

offsetSet() публичный метод

public offsetSet ( mixed $offset, mixed $value )
$offset mixed
$value mixed

offsetUnset() публичный метод

public offsetUnset ( mixed $offset )
$offset mixed

toArray() публичный метод

public toArray ( ) : array
Результат array

Описание свойств

$coordinates защищенное свойство

protected array $coordinates
Результат array

$dimension защищенное свойство

protected int $dimension
Результат integer