gram#
- swordfish.function.gram()#
Calculate the Gram matrix of the selected columns in the given table. With a given matrix A, the result is A.tranpose() dot A.
- Parameters:
ds (Constant) – One or multiple data source. It is usually generated by function sqlDS.
colNames (Constant, optional) – A STRING vector indicating column names. The default value is all columns names in ds.
subMean (Constant, optional) – A Boolean value indicating whether to substract from each column its mean. The default value is true.
normalize (Constant, optional) – A Boolean value indicating whether to divide each column by its standard deviation. The default value is false.