Repository navigation
Concept
F - an ADT representing the set of Files, {([C],[C])}
I - an ADT representing the set of Concepts, {(,,)}
C - the set of English characters used in the files, {values of c where c is A-Z and a-z and 0-9 and . and ,}
##Public Operations
###Constructor
Concept objectName(std::string word, File fileObject)
The constructor takes the source word and a created File object, and then passes the source word into the File object, receiving a vector containing the data for the requested word (if it is found). The constructor finally saves the number of related words (wordCount), and the cue frequency (cueFrequency).
###getWordData
objectName.getWordData(int index, std::string* word, float* fsg)
getWordData fills the provided string and float pointers with the word and link strength of the word that is in position index of the vector.
Note: as index 0 is the source word, index should start at 1 - an index of 0 returns the source word and an FSG of 1.
If an index is passed into getWordData that is higher than the length of the vector, or below 1, the pointers are not written to.
Note: the variable wordCount can be used to loop calling getWordData for each word/frequency pair in the vector.
for (int Count = 1; Count < conceptObject.wordCount; Count++)
{
conceptObject.getWordData(Count,stringPointer,floatPointer);
}
##Variables
###int wordCount wordCount is the number of words that are linked to the source word. Specifically, it is the length of the vectors containing the words and frequencies.
##Private Operations
###getFreq
getFreq bundles together a string to int conversion for the word frequency (which is stored as a string in the vector) and a try/catch statement for if the conversion fails - essentially a shorthand for the conversion process.
AI ; Artificial Intelligence
Asc ; Association
BSG ; Backward Target-to-Cue Strength
Cue ; Given word
FSG ; Forward Cue-to-Target Strength
MSG ; Mediated Strength
OSG ; Overlapping Associate Strength (similar asc between words)
QFR ; Cue: Frequency
QMC ; Cue: Mean Connectivity Among its Associates
QSS ; Cue: Set Size
QUC ; Cue: Use Code
Target ; Destination word
TFR ; Target: Frequency
TMC ; Target: Mean Connectivity Among its Associates
TSS ; Target: Set Size
TUC ; Target: Use Code