I have two script -
- linearAlgerbra
- Statistics
In lineraAlgebra, I have created a “type Vector float64”. It has a function Sumofsq which takes []Vector has a parameter and returns float64
In Statistics, I have created a “type data []float64”. It has a function vari which takes data has parameters and returns float64
I tried to use Sumofsq function in vari.
But it is giving me error----
cannot use deviations (type data) as type []linearAlgebra.Vector in argument to linearAlgebra.SumOfSquares
here deviation is a variable which stores type data values
I want to know if there is a way to use linearAlgebra.Sumofsq in statistics.go’s vari func