public class VectorUtils extends Object
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program ; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Created by Maochen on 12/3/14.
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.Function<Double,Double> |
sigmoid |
static java.util.function.Function<Double,Double> |
tanh |
| Constructor and Description |
|---|
VectorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static double[] |
addition(double[]... vectors) |
static double |
dotProduct(double[] vec1,
double[] vec2) |
static float[] |
doubleToFloat(double[] vector) |
static double[] |
floatToDouble(float[] vector) |
static double |
gaussianPDF(double mean,
double variance,
double x) |
static double |
getCosinValue(double[] vector1,
double[] vector2) |
static String[] |
intToString(int[] vectorIndex) |
static double[] |
scale(double[] a,
double scale) |
static double[] |
zip(double[] vec1,
double[] vec2,
BiFunctionDoublePrimitive op) |
public static java.util.function.Function<Double,Double> sigmoid
public static java.util.function.Function<Double,Double> tanh
public static double[] zip(double[] vec1,
double[] vec2,
BiFunctionDoublePrimitive op)
public static double[] addition(double[]... vectors)
public static double dotProduct(double[] vec1,
double[] vec2)
public static double getCosinValue(double[] vector1,
double[] vector2)
public static double[] scale(double[] a,
double scale)
public static double gaussianPDF(double mean,
double variance,
double x)
public static float[] doubleToFloat(double[] vector)
public static double[] floatToDouble(float[] vector)
public static String[] intToString(int[] vectorIndex)
Copyright © 2016. All rights reserved.