PHP Class GraphAware\Reco4PHP\Algorithms\Similarity\CosineSimilarity

Inheritance: implements GraphAware\Reco4PHP\Algorithms\Similarity\Similarity
ファイルを表示 Open project: graphaware/reco4php

Public Methods

Method Description
getSimilarity ( array $xVector, array $yVector )

Private Methods

Method Description
getDotProduct ( array $xVector, array $yVector )
getNorm ( array $vector )

Method Details

getSimilarity() public method

public getSimilarity ( array $xVector, array $yVector )
$xVector array
$yVector array