Commit 1526e3f5 authored by Alexander David Hellwig's avatar Alexander David Hellwig
Browse files

Move clust4j from helpers to com package

parent 490694c8
Pipeline #95861 passed with stages
in 13 minutes and 52 seconds
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils;
package com.clust4j.utils;
public abstract class Series<T> {
final Inequality in;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils;
package com.clust4j.utils;
import java.util.ArrayList;
......
......@@ -14,7 +14,7 @@
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils;
package com.clust4j.utils;
/**
* Simply a {@link Serializable} Object used as a lock for synchronized fits.
......
......@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils;
package com.clust4j.utils;
import static de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.TableFormatter.ColumnAlignment.LEFT;
import static de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.TableFormatter.ColumnAlignment.RIGHT;
import static com.clust4j.utils.TableFormatter.ColumnAlignment.LEFT;
import static com.clust4j.utils.TableFormatter.ColumnAlignment.RIGHT;
import java.text.NumberFormat;
import java.util.ArrayList;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils;
package com.clust4j.utils;
import java.util.ArrayList;
import java.util.Arrays;
......@@ -22,7 +22,7 @@ import java.util.Comparator;
import java.util.LinkedHashSet;
import java.util.Random;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.GlobalState;
import com.clust4j.GlobalState;
import org.apache.commons.math3.exception.DimensionMismatchException;
import org.apache.commons.math3.stat.descriptive.DescriptiveStatistics;
import org.apache.commons.math3.util.FastMath;
......
......@@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.parallel;
package com.clust4j.utils.parallel;
import java.util.concurrent.ForkJoinPool;
import java.util.concurrent.RecursiveTask;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.GlobalState;
import com.clust4j.GlobalState;
public abstract class MatrixMRTask<T> extends RecursiveTask<T> {
private static final long serialVersionUID = -4091298557784484895L;
......
......@@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.parallel.map;
package com.clust4j.utils.parallel.map;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.MatUtils;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.VecUtils;
import com.clust4j.utils.MatUtils;
import com.clust4j.utils.VecUtils;
public class DistributedMatrixMultiplication extends DualMatrixMapTaskOperator {
private static final long serialVersionUID = 6656335357116703359L;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.parallel.map;
package com.clust4j.utils.parallel.map;
abstract class DualMatrixMapTask extends MatrixMapTask {
private static final long serialVersionUID = -1965024834449661972L;
......
......@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.parallel.map;
package com.clust4j.utils.parallel.map;
abstract class DualMatrixMapTaskOperator extends DualMatrixMapTask {
......
......@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************/
package de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.parallel.map;
package com.clust4j.utils.parallel.map;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.utils.parallel.MatrixMRTask;
import com.clust4j.utils.parallel.MatrixMRTask;
abstract class MatrixMapTask extends MatrixMRTask<double[][]> {
private static final long serialVersionUID = -8682414038605706202L;
......
package de.monticore.lang.monticar.generator.middleware.clustering.algorithms;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.AffinityPropagation;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.AffinityPropagationParameters;
import com.clust4j.algo.AffinityPropagation;
import com.clust4j.algo.AffinityPropagationParameters;
import de.monticore.lang.embeddedmontiarc.embeddedmontiarc._symboltable.ExpandedComponentInstanceSymbol;
import de.monticore.lang.monticar.generator.middleware.clustering.AutomaticClusteringHelper;
import de.monticore.lang.monticar.generator.middleware.clustering.ClusteringAlgorithm;
......
......@@ -8,8 +8,8 @@ import de.monticore.lang.monticar.generator.middleware.clustering.ClusteringAlgo
import de.monticore.lang.monticar.generator.middleware.clustering.ClusteringAlgorithmFactory;
import de.monticore.lang.monticar.generator.middleware.clustering.ClusteringKind;
import de.monticore.lang.monticar.generator.middleware.clustering.algorithms.*;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.AffinityPropagation;
import de.monticore.lang.monticar.generator.middleware.helpers.AffinityPropagationHelper.clust4j.algo.AffinityPropagationParameters;
import com.clust4j.algo.AffinityPropagation;
import com.clust4j.algo.AffinityPropagationParameters;
import de.monticore.lang.monticar.generator.middleware.helpers.ComponentHelper;
import de.monticore.lang.monticar.generator.middleware.impls.CPPGenImpl;
import de.monticore.lang.monticar.generator.middleware.impls.RosCppGenImpl;
......@@ -25,9 +25,7 @@ import org.apache.commons.math3.linear.Array2DRowRealMatrix;
import org.apache.commons.math3.linear.RealMatrix;
import org.junit.Test;
import smile.clustering.DBSCAN;
import smile.clustering.KMeans;
import smile.clustering.SpectralClustering;
import smile.math.distance.MinkowskiDistance;
import java.io.IOException;
import java.util.*;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment