Skip to content

Commit

Permalink
Fix/jniclustering2 (#90)
Browse files Browse the repository at this point in the history
* Fix style
  • Loading branch information
avilchess authored Mar 7, 2019
1 parent 4beaba1 commit deca820
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 2 additions & 6 deletions bindings/jni/include/khiva_jni/clustering.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,12 @@ extern "C" {
* same) and dimension one indicates the number of time series.
* @brief Calculates The clusterization based on SBD.
* @param k The number of means to be computed.
* @param ref_centroids The resulting means or centroids.
* @param ref_labels The resulting labels of each time series which is the closest centroid.
* @param tolerance The error tolerance to stop the computation of the centroids.
* @param maxIterations The maximum number of iterations allowed.
*
* @return An Array of arrays with the resulting centroids and labels.
*/
JNIEXPORT jlongArray JNICALL Java_io_shapelets_khiva_Clustering_kMeans(JNIEnv *env, jobject, jlong ref_tss, jint k,
jlong ref_centroids, jlong ref_labels,
jfloat tolerance, jint maxIterations);

/**
Expand All @@ -39,13 +38,10 @@ JNIEXPORT jlongArray JNICALL Java_io_shapelets_khiva_Clustering_kMeans(JNIEnv *e
* same) and dimension one indicates the number of time series.
* @brief Calculates The clusterization based on SBD.
* @param k The number of means to be computed.
* @param ref_centroids The resulting means or centroids.
* @param ref_labels The resulting labels of each time series which is the closest centroid.
* @param tolerance The error tolerance to stop the computation of the centroids.
* @param maxIterations The maximum number of iterations allowed.
*/
JNIEXPORT jlongArray JNICALL Java_io_shapelets_khiva_Clustering_kShape(JNIEnv *env, jobject, jlong ref_tss, jint k,
jlong ref_centroids, jlong ref_labels,
jfloat tolerance, jint maxIterations);

#ifdef __cplusplus
Expand Down
2 changes: 0 additions & 2 deletions bindings/jni/src/clustering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
#include <khiva_jni/clustering.h>

JNIEXPORT jlongArray JNICALL Java_io_shapelets_khiva_Clustering_kMeans(JNIEnv *env, jobject, jlong ref_tss, jint k,
jlong ref_centroids, jlong ref_labels,
jfloat tolerance, jint maxIterations) {
const jint l = 3;
jlong tmp[l];
Expand Down Expand Up @@ -44,7 +43,6 @@ JNIEXPORT jlongArray JNICALL Java_io_shapelets_khiva_Clustering_kMeans(JNIEnv *e
}

JNIEXPORT jlongArray JNICALL Java_io_shapelets_khiva_Clustering_kShape(JNIEnv *env, jobject, jlong ref_tss, jint k,
jlong ref_centroids, jlong ref_labels,
jfloat tolerance, jint maxIterations) {
const jint l = 3;
jlong tmp[l];
Expand Down

0 comments on commit deca820

Please sign in to comment.