Skip to content

Commit

Permalink
before extract vectorMatch #294 #364
Browse files Browse the repository at this point in the history
  • Loading branch information
walterxie committed May 31, 2023
1 parent eab6653 commit c4572bb
Show file tree
Hide file tree
Showing 34 changed files with 43 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import lphy.core.graphicalmodel.components.*;
import lphy.core.graphicalmodel.types.IntegerValue;
import lphy.core.graphicalmodel.vectorization.IID;
import lphy.core.vectorization.IID;
import org.apache.commons.math3.distribution.BinomialDistribution;
import org.apache.commons.math3.random.RandomGenerator;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import lphy.core.graphicalmodel.components.GenerativeDistribution;
import lphy.core.graphicalmodel.components.RandomVariable;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.RangeElement;
import lphy.core.vectorization.RangeElement;

import java.util.Map;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import lphy.base.evolution.tree.TimeTreeNode;
import lphy.core.graphicalmodel.components.*;
import lphy.core.graphicalmodel.types.DoubleArray2DValue;
import lphy.core.graphicalmodel.vectorization.VectorUtils;
import lphy.core.vectorization.VectorUtils;
import org.apache.commons.math3.util.CombinatoricsUtils;

import java.util.*;
Expand Down
2 changes: 1 addition & 1 deletion lphy-base/src/main/java/lphy/base/functions/Unique.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lphy.core.graphicalmodel.components.GeneratorInfo;
import lphy.core.graphicalmodel.components.ParameterInfo;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.CompoundVectorValue;
import lphy.core.vectorization.CompoundVectorValue;

import java.util.*;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import lphy.base.evolution.tree.TimeTree;
import lphy.base.parser.nexus.NexusWriter;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.VectorUtils;
import lphy.core.logger.RandomValueLogger;
import lphy.core.util.Symbols;
import lphy.core.vectorization.VectorUtils;

import java.io.File;
import java.io.PrintStream;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
import lphy.core.graphicalmodel.components.GenerativeDistribution;
import lphy.core.graphicalmodel.components.Generator;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.VectorizedFunction;
import lphy.core.layeredgraph.Layering;
import lphy.core.logger.RandomValueLogger;
import lphy.core.parser.GraphicalLPhyParser;
import lphy.core.parser.LPhyMetaParser;
import lphy.core.parser.REPL;
import lphy.core.util.LoggerUtils;
import lphy.core.vectorization.VectorizedFunction;
import lphystudio.app.alignmentcomponent.AlignmentComponent;
import lphystudio.app.alignmentcomponent.SequenceTypePanel;
import lphystudio.app.graphicalmodelcomponent.GraphicalModelComponent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.types.Vector;
import lphy.core.graphicalmodel.vectorization.CompoundVectorValue;
import lphy.core.vectorization.CompoundVectorValue;

import javax.swing.*;
import java.awt.*;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import javax.swing.*;

import static lphy.core.graphicalmodel.vectorization.VectorUtils.INDEX_SEPARATOR;
import static lphy.core.vectorization.VectorUtils.INDEX_SEPARATOR;

public class ContinuousCharacterDataComponent extends JLabel {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
import java.util.List;
import java.util.prefs.Preferences;

import static lphy.core.graphicalmodel.vectorization.VectorUtils.INDEX_SEPARATOR;
import static lphy.core.narrative.NarrativeUtils.getURL;
import static lphy.core.vectorization.VectorUtils.INDEX_SEPARATOR;

public class HTMLNarrative implements Narrative {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
import lphy.core.graphicalmodel.components.Generator;
import lphy.core.graphicalmodel.components.RandomVariable;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.IID;
import lphy.core.graphicalmodel.vectorization.VectorizedDistribution;
import lphy.core.graphicalmodel.vectorization.VectorizedFunction;
import lphy.core.layeredgraph.LatticePoint;
import lphy.core.layeredgraph.LayeredNode;
import lphy.core.layeredgraph.NodeWrapper;
import lphy.core.layeredgraph.ProperLayeredGraph;
import lphy.core.narrative.Narrative;
import lphy.core.parser.LPhyMetaParser;
import lphy.core.util.Symbols;
import lphy.core.vectorization.IID;
import lphy.core.vectorization.VectorizedDistribution;
import lphy.core.vectorization.VectorizedFunction;
import lphystudio.core.layeredgraph.LayeredGNode;
import lphystudio.core.theme.ThemeColours;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import java.util.List;

import static lphy.core.graphicalmodel.vectorization.VectorUtils.INDEX_SEPARATOR;
import static lphy.core.vectorization.VectorUtils.INDEX_SEPARATOR;

public class LaTeXUtils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
import lphy.core.graphicalmodel.components.RandomVariable;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.components.ValueUtils;
import lphy.core.graphicalmodel.vectorization.IID;
import lphy.core.graphicalmodel.vectorization.VectorizedDistribution;
import lphy.core.graphicalmodel.vectorization.VectorizedFunction;
import lphy.core.layeredgraph.LayeredNode;
import lphy.core.layeredgraph.NodeWrapper;
import lphy.core.parser.LPhyMetaParser;
import lphy.core.vectorization.IID;
import lphy.core.vectorization.VectorizedDistribution;
import lphy.core.vectorization.VectorizedFunction;
import lphystudio.core.theme.ThemeColours;

import javax.swing.*;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lphy.core.graphicalmodel.types;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.vectorization.VectorValue;
import lphy.core.vectorization.VectorValue;

public class BooleanArrayValue extends VectorValue<Boolean> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lphy.core.graphicalmodel.types;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.vectorization.VectorValue;
import lphy.core.vectorization.VectorValue;

public class DoubleArrayValue extends VectorValue<Double> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package lphy.core.graphicalmodel.types;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.vectorization.RangeElement;
import lphy.core.graphicalmodel.vectorization.VectorValue;
import lphy.core.vectorization.RangeElement;
import lphy.core.vectorization.VectorValue;

import java.util.Arrays;
public class IntegerArrayValue extends VectorValue<Integer> implements RangeElement {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lphy.core.graphicalmodel.types;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.vectorization.RangeElement;
import lphy.core.vectorization.RangeElement;

public class IntegerValue extends NumberValue<Integer> implements RangeElement {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lphy.core.graphicalmodel.types;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.vectorization.VectorValue;
import lphy.core.vectorization.VectorValue;

public class NumberArrayValue extends VectorValue<Number> {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package lphy.core.graphicalmodel.types;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.vectorization.VectorValue;
import lphy.core.vectorization.VectorValue;

import static lphy.core.graphicalmodel.components.ValueUtils.quotedString;

Expand Down
2 changes: 1 addition & 1 deletion lphy/src/main/java/lphy/core/logger/VarFileLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import lphy.core.graphicalmodel.components.RandomVariable;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.VectorUtils;
import lphy.core.util.Symbols;
import lphy.core.vectorization.VectorUtils;

import java.io.File;
import java.io.FileWriter;
Expand Down
8 changes: 4 additions & 4 deletions lphy/src/main/java/lphy/core/parser/ParserLoader.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
package lphy.core.parser;

import lphy.core.graphicalmodel.components.*;
import lphy.core.graphicalmodel.vectorization.IID;
import lphy.core.graphicalmodel.vectorization.VectorizedDistribution;
import lphy.core.graphicalmodel.vectorization.VectorizedFunction;
import lphy.core.spi.LPhyLoader;
import lphy.core.util.LoggerUtils;
import lphy.core.vectorization.IID;
import lphy.core.vectorization.VectorizedDistribution;
import lphy.core.vectorization.VectorizedFunction;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.*;

import static lphy.core.graphicalmodel.vectorization.IID.REPLICATES_PARAM_NAME;
import static lphy.core.vectorization.IID.REPLICATES_PARAM_NAME;

public class ParserLoader {

Expand Down
4 changes: 2 additions & 2 deletions lphy/src/main/java/lphy/core/parser/functions/MethodCall.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import lphy.core.graphicalmodel.components.*;
import lphy.core.graphicalmodel.types.Vector;
import lphy.core.graphicalmodel.vectorization.CompoundVectorValue;
import lphy.core.graphicalmodel.vectorization.VectorizedFunction;
import lphy.core.narrative.Narrative;
import lphy.core.narrative.NarrativeUtils;
import lphy.core.vectorization.CompoundVectorValue;
import lphy.core.vectorization.VectorizedFunction;

import java.lang.reflect.Array;
import java.lang.reflect.InvocationTargetException;
Expand Down
2 changes: 1 addition & 1 deletion lphy/src/main/java/lphy/core/parser/functions/Range.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import lphy.core.graphicalmodel.components.GeneratorInfo;
import lphy.core.graphicalmodel.components.ParameterInfo;
import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.vectorization.RangeElement;
import lphy.core.vectorization.RangeElement;

public class Range extends DeterministicFunction<Integer[]> implements RangeElement {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.Value;
import lphy.core.graphicalmodel.types.Vector;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.components.Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.*;
import lphy.core.narrative.Narrative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.GenerativeDistribution;
import lphy.core.graphicalmodel.components.GraphicalModelNode;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

public interface RangeElement {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.Value;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.Argument;
import lphy.core.graphicalmodel.components.Generator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.DeterministicFunction;
import lphy.core.graphicalmodel.components.Value;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.*;
import lphy.core.narrative.Narrative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.*;
import lphy.core.narrative.Narrative;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package lphy.core.graphicalmodel.vectorization;
package lphy.core.vectorization;

import lphy.core.graphicalmodel.components.GenerativeDistribution;
import lphy.core.graphicalmodel.components.RandomVariable;
Expand Down
2 changes: 1 addition & 1 deletion lphy/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
exports lphy.core.codebuilder;
exports lphy.core.graphicalmodel.components;
exports lphy.core.graphicalmodel.types;
exports lphy.core.graphicalmodel.vectorization;
exports lphy.core.vectorization;
exports lphy.core.layeredgraph;

// parser
Expand Down

0 comments on commit c4572bb

Please sign in to comment.