cosine {math} R Documentation

Evaluate cos similarity of two vector

Description


the given vector x and y should be contains the elements in the same length.

Usage

cosine(x, y);

Arguments

x

a numeric data sequence

y

another numeric data sequence

Details

Authors

sciBASIC.NET

Value

this function returns data object of type double.

clr value class

Examples


[Package math version 5.0.1.2389 Index]