Example #1
0
 public Tensor Normalise(Tensor IN, Tensor mean, Tensor std, Tensor OUT)
 {
     if (IN.GetRows() != mean.GetRows() || IN.GetRows() != std.GetRows() || IN.GetCols() != mean.GetCols() || IN.GetCols() != std.GetCols())
     {
         Debug.Log("Incompatible dimensions for normalisation.");
         return(IN);
     }
     else
     {
         Eigen.Normalise(IN.Ptr, mean.Ptr, std.Ptr, OUT.Ptr);
         return(OUT);
     }
 }
Example #2
0
 public Matrix Normalise(Matrix IN, Matrix mean, Matrix std, Matrix OUT)
 {
     if (IN.GetRows() != mean.GetRows() || IN.GetRows() != std.GetRows() || IN.GetCols() != mean.GetCols() || IN.GetCols() != std.GetCols())
     {
         Debug.Log("Incompatible dimensions for normalisation.");
         return(IN);
     }
     else
     {
         Eigen.Normalise(IN.Ptr, mean.Ptr, std.Ptr, OUT.Ptr);
         return(OUT);
     }
 }
 public Tensor Normalise(Tensor IN, Tensor mean, Tensor std, Tensor OUT)
 {
     Eigen.Normalise(IN.Ptr, mean.Ptr, std.Ptr, OUT.Ptr);
     return(OUT);
 }