public class FARFingrams extends Fingrams
Modifier and Type | Field and Description |
---|---|
protected double[][] |
matrixFiringDegrees
Matrix that stores the firingDegrees up to which the examples fire the
rules.
|
fileLocation, matrixFiringDegreesRulesXExamples, matrixRulesXExamples, numberAntecedents, numberExamples, numberRules, numberUncoveredExamples, possibleLabelConclusions, relation, relationDirected, rulesIdentifiers, ruleUncoveredExamples, scaledSocialNetwork, socialNetwork, textRules, totalFiringDegrees, uncoveredExamples
Constructor and Description |
---|
FARFingrams()
Default Constructor.
|
FARFingrams(int typeRelation,
java.lang.String file)
Parameter Constructor.
|
Modifier and Type | Method and Description |
---|---|
InfoNode |
calculateInfoNode(int n)
Constructs and returns an
InfoNode of the node with the given id. |
void |
calculateLift(java.lang.String file) |
java.lang.String |
createNodeUncoveredExamples() |
protected void |
generateDirectedMatrix()
Generates the complete directed social network matrix with the list of examples covered by each rule.
|
void |
generateScienceMapFile(double MaxThr) |
java.util.List<java.lang.Double> |
getConfidence() |
double[][] |
getFiringDegrees() |
java.util.List<java.lang.Double> |
getLift() |
java.lang.Double |
getMaxLift() |
java.lang.Double |
getMaxSupport() |
java.lang.Double |
getMinLift() |
java.lang.Double |
getMinSupport() |
java.util.List<java.lang.String> |
getPossibleVbleConclusions() |
java.util.List<java.lang.Double> |
getSupport() |
boolean |
hasRuleUncoveredExamples() |
int |
loadInfoFromFS()
Loads all the information needed for the Fingrams object, setting all its variables,
from a .fs file located on fileLocation.
|
void |
printFingramsLegend() |
buildConfGraphDotFile, elementsInCommon, generateFingramImages, generateMatrix, generateScaledNetwork, generateUndirectedMatrix, getFileLocation, getMatrixRulesXExamples, getNumberAntecedents, getNumberExamples, getNumberRules, getPossibleLabelConclusions, getRulesIdentifiers, getScaledSocialNetwork, getSocialNetwork, getTextRules, getTotalFiringDegrees, getTypeRelation, isCoveringExamples, writeToFileNetwork
protected double[][] matrixFiringDegrees
public FARFingrams()
public FARFingrams(int typeRelation, java.lang.String file)
typeRelation
- given relation value.file
- directory where to store every resultant file.public java.util.List<java.lang.Double> getSupport()
public java.util.List<java.lang.Double> getConfidence()
public java.util.List<java.lang.Double> getLift()
public java.util.List<java.lang.String> getPossibleVbleConclusions()
public java.lang.Double getMinSupport()
public java.lang.Double getMaxSupport()
public java.lang.Double getMinLift()
public java.lang.Double getMaxLift()
public double[][] getFiringDegrees()
public int loadInfoFromFS()
Fingrams
loadInfoFromFS
in class Fingrams
public InfoNode calculateInfoNode(int n)
InfoNode
of the node with the given id.
This InfoNode object stores graphical information of a node used when the Figrams are displayed.calculateInfoNode
in class Fingrams
n
- given id of the node.protected void generateDirectedMatrix()
Fingrams
generateDirectedMatrix
in class Fingrams
public void calculateLift(java.lang.String file)
public void generateScienceMapFile(double MaxThr)
generateScienceMapFile
in class Fingrams
public java.lang.String createNodeUncoveredExamples()
createNodeUncoveredExamples
in class Fingrams
public boolean hasRuleUncoveredExamples()
hasRuleUncoveredExamples
in class Fingrams
public void printFingramsLegend()
printFingramsLegend
in class Fingrams