// In model.cpp

// …

 

//******************************************************************************

//******************************************************************************

//

// Parameter settings (in global variables) for the keyboard model

//

//******************************************************************************

//******************************************************************************

 

double prKbHit = 0.9;

//The probability that you want to type a character and you do successfully make it

//In the setting of the original keyboard model in the project,

//we make it 0.9, but you can try different values to see the effects.

 

double prKbMiss = 0.1;

//The sum of probabilities that you want to type a character but end in touching

//a different character.

//we make it 0.1, but you can try different values to see the effects.

 

//*******************************************************

//Note that prKbHit + prKbMiss should always equal 1

//*******************************************************

 

//In the setting of the original keyboard model in the project,

//we make it 0.2, but you can try different values to see the effects.

 

 

double kbDegenerateDistancePower = 2;

//The likelihood you want to type a character but end in touching a different character

//is proportion to the inverse of

//(kbDegenerateDistancePower) raised to the (distance between them) th power

//In the setting of the original keyboard model in the project,

//we make it 2, but you can try different constants to see the effects.//*******************************************************

 

// In model.cpp

// …

 

//******************************************************************************

//******************************************************************************

//

// Parameter settings (in global variables) for the Spelling model

//

//******************************************************************************

//******************************************************************************

double prSpRepeat = 0.2;

//The probability of repeating the current cognitive state again as the next state

//we make it 0.2 initially, but you can try different values to see the effects.

 

double prSpMoveOn = 0.8;

//The probability of moving from the current cognitive state to other states

//     as the next state

//we make it 0.8 initially, but you can try different values to see the effects.

 

//********************************************************

//Note that prSpRepeat + prSpMoveon should always equal 1

//********************************************************

 

double spDegenerateTransitionDistancePower = 2;

//The likelihood of moving from the cognitive state of typing some character in a word

//to the next cognitive state is proportion to the inverse of

//(spDegenerateTransitionDistancePower) to the

//(the distance between the current state to the next state)th power.

//In the setting of the original spelling model in the project,

//we make it 2, but you can try different values to see the effects.