Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
histogram-click-based filtering now implemented; histogram sort corre…
…cted; library directory pointers in nbproject now corrected
- Loading branch information
1 parent
1a7ea6e
commit 285620e
Showing
11 changed files
with
392 additions
and
129 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project-private xmlns="http://www.netbeans.org/ns/project-private/1"> | ||
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"> | ||
<file> | ||
<url>src/emr_vis_nlp/view/doc_grid/DocumentGrid.java</url> | ||
<line>245</line> | ||
</file> | ||
<file> | ||
<url>src/emr_vis_nlp/view/doc_grid/DocumentGridTable.java</url> | ||
<line>73</line> | ||
</file> | ||
<file> | ||
<url>src/emr_vis_nlp/model/DocDetailsTableModel.java</url> | ||
<line>26</line> | ||
</file> | ||
<file> | ||
<url>src/emr_vis_nlp/ml/MLPredictor.java</url> | ||
<line>19</line> | ||
</file> | ||
</editor-bookmarks> | ||
</project-private> |
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,75 @@ | ||
|
||
package emr_vis_nlp.controller; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* Tuple class for storing an attribute name and a target value. | ||
* | ||
* @author alexander.p.conrad | ||
*/ | ||
public class AttrValPredicate { | ||
|
||
private String attrName; | ||
private String attrVal; | ||
|
||
public AttrValPredicate(String attrName, String attrVal) { | ||
this.attrName = attrName; | ||
this.attrVal = attrVal; | ||
} | ||
|
||
public String getAttrName() { | ||
return attrName; | ||
} | ||
|
||
public void setAttrName(String attrName) { | ||
this.attrName = attrName; | ||
} | ||
|
||
public String getAttrVal() { | ||
return attrVal; | ||
} | ||
|
||
public void setAttrVal(String attrVal) { | ||
this.attrVal = attrVal; | ||
} | ||
|
||
public String getTrueStrPred() { | ||
return attrName+" == '"+attrVal+"'"; | ||
} | ||
|
||
public String getFalseStrPred() { | ||
return "["+attrName+"] != '"+attrVal+"'"; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object obj) { | ||
if (obj == null) { | ||
return false; | ||
} | ||
if (getClass() != obj.getClass()) { | ||
return false; | ||
} | ||
final AttrValPredicate other = (AttrValPredicate) obj; | ||
if (!Objects.equals(this.attrName, other.attrName)) { | ||
return false; | ||
} | ||
if (!Objects.equals(this.attrVal, other.attrVal)) { | ||
return false; | ||
} | ||
return true; | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int hash = 7; | ||
hash = 41 * hash + Objects.hashCode(this.attrName); | ||
hash = 41 * hash + Objects.hashCode(this.attrVal); | ||
return hash; | ||
} | ||
|
||
|
||
|
||
|
||
|
||
} |
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
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
Oops, something went wrong.