-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1766 from cmu-phil/development
Update code to 7.6.4
- Loading branch information
Showing
1,750 changed files
with
90,185 additions
and
25,435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
# Tetrad Application | ||
|
||
This is a user interface tool that divides the analysis of causal problems into modular pieces which can be connected together to reflect how causal problems should ideally be analyzed. This can helpful as an educational tool or for data analysis for those who prefer a point and click interface. | ||
This is a user interface tool that divides the analysis of causal problems into modular pieces which can be connected | ||
together to reflect how causal problems should ideally be analyzed. This can helpful as an educational tool or for data | ||
analysis for those who prefer a point and click interface. | ||
|
||
Please use a recent Java JDK. See [Setting up Java for Tetrad](https://github.com/cmu-phil/tetrad/wiki/Setting-up-Java-for-Tetrad). | ||
Please use a recent Java JDK. | ||
See [Setting up Java for Tetrad](https://github.com/cmu-phil/tetrad/wiki/Setting-up-Java-for-Tetrad). | ||
|
||
To download the Tetrad jar, please click the following link (which will always be updated to the latest version): | ||
|
||
https://s01.oss.sonatype.org/content/repositories/releases/io/github/cmu-phil/tetrad-gui/7.6.2/tetrad-gui-7.6.2-launch.jar | ||
https://s01.oss.sonatype.org/content/repositories/releases/io/github/cmu-phil/tetrad-gui/7.6.3/tetrad-gui-7.6.3-launch.jar | ||
|
||
You may be able to launch this jar by double-clicking the jar file name. However, on a Mac, this presents some security challenges. On all platforms, the jar may be launched at the command line (with a specification of the amount of RAM you will allow it to use) using this command: | ||
You may be able to launch this jar by double-clicking the jar file name. However, on a Mac, this presents some security | ||
challenges. On all platforms, the jar may be launched at the command line (with a specification of the amount of RAM you | ||
will allow it to use) using this command: | ||
|
||
java -Xmx[g]G -jar *-launch.jar | ||
|
||
Here, [g] is the maximum number of Gigabytes you wish to allocate to the process. | ||
Here, [g] is the maximum number of Gigabytes you wish to allocate to the process. | ||
|
||
See our Documentation for more details about the Tetrad application. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Dec 10, 2018 3:14:46 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface ContinuousData extends Data { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Nov 20, 2018 4:28:27 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface Data { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Dec 8, 2018 4:14:30 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface DataColumn { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ | |
* Jan 2, 2019 10:46:41 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public final class DataColumns { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ | |
* Dec 12, 2018 11:16:14 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public abstract class DataFileReader implements DataReader { | ||
|
||
|
@@ -88,7 +89,7 @@ public DataFileReader(Path dataFile, Delimiter delimiter) { | |
* Counts number of column from the first non-blank line. | ||
* | ||
* @return the number of column from the first non-blank line | ||
* @throws IOException if an I/O error occurs | ||
* @throws java.io.IOException if an I/O error occurs | ||
*/ | ||
protected int countNumberOfColumns() throws IOException { | ||
int count = 0; | ||
|
@@ -184,7 +185,7 @@ protected int countNumberOfColumns() throws IOException { | |
* Counts number of non-blank lines. | ||
* | ||
* @return the number of non-blank and non-commented lines | ||
* @throws IOException if an I/O error occurs | ||
* @throws java.io.IOException if an I/O error occurs | ||
*/ | ||
protected int countNumberOfLines() throws IOException { | ||
int count = 0; | ||
|
@@ -253,7 +254,7 @@ protected int countNumberOfLines() throws IOException { | |
/** | ||
* Sets the quote character. | ||
* | ||
* @param quoteCharacter the quote character | ||
* @param quoteCharacter the quote character to be set | ||
*/ | ||
@Override | ||
public void setQuoteCharacter(char quoteCharacter) { | ||
|
@@ -265,7 +266,7 @@ public void setQuoteCharacter(char quoteCharacter) { | |
/** | ||
* Sets the comment marker. | ||
* | ||
* @param commentMarker the comment marker | ||
* @param commentMarker the comment marker to be set | ||
*/ | ||
@Override | ||
public void setCommentMarker(String commentMarker) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Dec 12, 2018 11:16:53 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface DataReader { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
* Nov 6, 2018 2:26:59 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public class DataReaderException extends RuntimeException { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
* Dec 7, 2018 3:43:12 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public abstract class DatasetFileReader extends DataFileReader implements DatasetReader { | ||
|
||
|
@@ -45,9 +46,9 @@ public DatasetFileReader(Path dataFile, Delimiter delimiter) { | |
} | ||
|
||
/** | ||
* Get the missing data marker. | ||
* Sets the missing data marker. | ||
* | ||
* @param missingDataMarker the missing data marker | ||
* @param missingDataMarker the missing data marker to be set | ||
*/ | ||
@Override | ||
public void setMissingDataMarker(String missingDataMarker) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Dec 3, 2018 2:24:32 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface DatasetReader extends DataReader { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Nov 5, 2018 2:27:47 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public enum Delimiter { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Dec 10, 2018 3:50:45 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface DiscreteData extends Data { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
* Dec 10, 2018 3:24:22 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface DiscreteDataColumn { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
* Dec 10, 2018 3:57:59 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface MixedData extends Data { | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,20 +26,27 @@ | |
* Nov 19, 2018 2:20:52 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface CovarianceData extends Data { | ||
|
||
/** | ||
* <p>getNumberOfCases.</p> | ||
* | ||
* @return the number of cases in the data. | ||
*/ | ||
int getNumberOfCases(); | ||
|
||
/** | ||
* <p>getVariables.</p> | ||
* | ||
* @return the number of variables in the data. | ||
*/ | ||
List<String> getVariables(); | ||
|
||
/** | ||
* <p>getData.</p> | ||
* | ||
* @return the data in a 2D array. | ||
*/ | ||
double[][] getData(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,14 +26,15 @@ | |
* Feb 22, 2017 2:31:13 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public interface CovarianceDataReader extends DataReader { | ||
|
||
/** | ||
* Reads in the covariance data. | ||
* | ||
* @return the covariance data. | ||
* @throws IOException if an I/O error occurs. | ||
* @throws java.io.IOException if an I/O error occurs. | ||
*/ | ||
CovarianceData readInData() throws IOException; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,6 +34,7 @@ | |
* Nov 19, 2018 11:04:51 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public class LowerCovarianceDataFileReader extends DataFileReader implements CovarianceDataReader { | ||
|
||
|
@@ -48,10 +49,9 @@ public LowerCovarianceDataFileReader(Path dataFile, Delimiter delimiter) { | |
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* <p> | ||
* Reads in the covariance data. | ||
* | ||
* @return the covariance data. | ||
* @throws IOException if an I/O error occurs. | ||
*/ | ||
@Override | ||
public CovarianceData readInData() throws IOException { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
* Dec 18, 2018 11:21:23 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public class ColumnMetadata { | ||
|
||
|
@@ -75,9 +76,9 @@ public ColumnMetadata(String name, int columnNumber, boolean discrete) { | |
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* <p> | ||
* Return a string representation of the column metadata. | ||
* | ||
* @return a string representation of the column metadata. | ||
*/ | ||
@Override | ||
public String toString() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
* Dec 20, 2018 11:42:01 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public class InterventionalColumn { | ||
|
||
|
@@ -51,9 +52,9 @@ public InterventionalColumn(ColumnMetadata valueColumn, ColumnMetadata statusCol | |
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* <p> | ||
* Returns a string representation of this object. | ||
* | ||
* @return a string representation of this object. | ||
*/ | ||
@Override | ||
public String toString() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
* Dec 18, 2018 11:21:23 AM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public class Metadata { | ||
|
||
|
@@ -58,9 +59,9 @@ public Metadata(List<ColumnMetadata> domainColumnns, List<InterventionalColumn> | |
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* <p> | ||
* Returns a string representation of this object. | ||
* | ||
* @return a string representation of this object. | ||
*/ | ||
@Override | ||
public String toString() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,7 @@ | |
* Dec 18, 2018 2:05:46 PM | ||
* | ||
* @author Kevin V. Bui ([email protected]) | ||
* @version $Id: $Id | ||
*/ | ||
public class MetadataFileReader implements MetadataReader { | ||
|
||
|
@@ -47,10 +48,9 @@ public MetadataFileReader(Path metadataFile) { | |
} | ||
|
||
/** | ||
* {@inheritDoc} | ||
* <p> | ||
* Reads in the metadata. | ||
* | ||
* @return the metadata. | ||
* @throws IOException if an I/O error occurs. | ||
*/ | ||
@Override | ||
public Metadata read() throws IOException { | ||
|
Oops, something went wrong.