public class RServiceUsingRserve
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RServiceUsingRserve.RserveConnectionException |
Constructor and Description |
---|
RServiceUsingRserve() |
Modifier and Type | Method and Description |
---|---|
protected static void |
assignNamesToVector(org.rosuda.REngine.Rserve.RConnection rConnection,
java.lang.String[] inputNames,
java.lang.Object[] inputValues) |
static ClassDiscriminationResult |
doClassDiscrimination(java.lang.String docrootPath,
double[] dataX,
double[] dataY,
boolean flag) |
protected static org.rosuda.REngine.Rserve.RConnection |
getRConnection() |
static RResult[] |
handlingMissingData(java.lang.String[] inputNames,
java.lang.Object[][] inputValues,
java.lang.String[] outputNames,
boolean showIntermediateResults,
boolean showWarnings,
boolean completeProcess) |
static HierarchicalClusteringResult |
hierarchicalClustering(java.lang.String docrootPath,
double[] dataX,
double[] dataY) |
static RResult[] |
kMeansClustering(java.lang.Object[][] inputValues,
boolean showWarnings,
int numberOfClusters,
int iterations) |
static LinearRegressionResult |
linearRegression(java.lang.String docrootPath,
java.lang.String method,
double[] dataX,
double[] dataY,
int polynomialDegree) |
static double[][] |
normalize(java.lang.String docrootPath,
java.lang.Object[][] data) |
protected static java.lang.String |
plotEvalScript(org.rosuda.REngine.Rserve.RConnection rConnection,
java.lang.String docrootPath,
java.lang.String script,
boolean showWarnings) |
protected static java.lang.Object |
rexp2javaObj(org.rosuda.REngine.REXP rexp) |
static RResult[] |
runScript(java.lang.String docrootPath,
java.lang.String[] inputNames,
java.lang.Object[] inputValues,
java.lang.String[] outputNames,
java.lang.String script,
java.lang.String plotScript,
boolean showIntermediateResults,
boolean showWarnings) |
protected static org.rosuda.REngine.Rserve.RConnection getRConnection() throws java.rmi.RemoteException
java.rmi.RemoteException
protected static java.lang.String plotEvalScript(org.rosuda.REngine.Rserve.RConnection rConnection, java.lang.String docrootPath, java.lang.String script, boolean showWarnings) throws org.rosuda.REngine.Rserve.RserveException, org.rosuda.REngine.REXPMismatchException, java.rmi.RemoteException
org.rosuda.REngine.Rserve.RserveException
org.rosuda.REngine.REXPMismatchException
java.rmi.RemoteException
protected static void assignNamesToVector(org.rosuda.REngine.Rserve.RConnection rConnection, java.lang.String[] inputNames, java.lang.Object[] inputValues) throws org.rosuda.REngine.Rserve.RserveException, java.rmi.RemoteException
org.rosuda.REngine.Rserve.RserveException
java.rmi.RemoteException
public static RResult[] runScript(java.lang.String docrootPath, java.lang.String[] inputNames, java.lang.Object[] inputValues, java.lang.String[] outputNames, java.lang.String script, java.lang.String plotScript, boolean showIntermediateResults, boolean showWarnings) throws java.rmi.RemoteException
java.rmi.RemoteException
protected static java.lang.Object rexp2javaObj(org.rosuda.REngine.REXP rexp) throws org.rosuda.REngine.REXPMismatchException
org.rosuda.REngine.REXPMismatchException
public static double[][] normalize(java.lang.String docrootPath, java.lang.Object[][] data) throws java.rmi.RemoteException
java.rmi.RemoteException
public static ClassDiscriminationResult doClassDiscrimination(java.lang.String docrootPath, double[] dataX, double[] dataY, boolean flag) throws java.rmi.RemoteException
java.rmi.RemoteException
public static LinearRegressionResult linearRegression(java.lang.String docrootPath, java.lang.String method, double[] dataX, double[] dataY, int polynomialDegree) throws java.rmi.RemoteException
java.rmi.RemoteException
public static RResult[] kMeansClustering(java.lang.Object[][] inputValues, boolean showWarnings, int numberOfClusters, int iterations) throws java.rmi.RemoteException
java.rmi.RemoteException
public static HierarchicalClusteringResult hierarchicalClustering(java.lang.String docrootPath, double[] dataX, double[] dataY) throws java.rmi.RemoteException
java.rmi.RemoteException
public static RResult[] handlingMissingData(java.lang.String[] inputNames, java.lang.Object[][] inputValues, java.lang.String[] outputNames, boolean showIntermediateResults, boolean showWarnings, boolean completeProcess) throws java.rmi.RemoteException
java.rmi.RemoteException