klavaro  3.13
About: Klavaro is a touch typing tutor program.
  Fossies Dox: klavaro-3.13.tar.bz2  ("unofficial" and yet experimental doxygen-generated source code documentation)  

accuracy.h File Reference
#include <plot.h>
#include <glib.h>
Include dependency graph for accuracy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ACCUR_LOG_FILE   "accuracy.log"
 
#define PROFI_LOG_FILE   "proficiency.log"
 
#define MAX_CHARS_EVALUATED   130
 
#define MAX_TT_SAVED   30
 
#define ERROR_INERTIA   10 /* How many correct touchs to eliminate a wrong one (it was 30 first) */
 
#define ERROR_LIMIT   60 /* How many errors to start a special practice on adaptability */
 
#define PROFI_LIMIT
 
#define UTF8_BUFFER   7
 

Functions

void accur_init (void)
 
void accur_terror_reset (void)
 
void accur_ttime_reset (void)
 
void accur_reset (void)
 
gint accur_terror_n_get (void)
 
gint accur_ttime_n_get (void)
 
gchar * accur_terror_char_utf8 (gint i)
 
gchar * accur_ttime_char_utf8 (gint i)
 
gulong accur_wrong_get (gint i)
 
gdouble accur_profi_aver (gint i)
 
gint accur_profi_aver_norm (gint i)
 
void accur_correct (gunichar uchr, double touch_time)
 
void accur_wrong (gunichar uchr)
 
gulong accur_error_total (void)
 
void accur_terror_sort (void)
 
void accur_ttime_sort (void)
 
void accur_sort (void)
 
gboolean accur_create_word (gunichar *word)
 
void accur_close (void)
 

Macro Definition Documentation

◆ ACCUR_LOG_FILE

#define ACCUR_LOG_FILE   "accuracy.log"

Definition at line 21 of file accuracy.h.

◆ ERROR_INERTIA

#define ERROR_INERTIA   10 /* How many correct touchs to eliminate a wrong one (it was 30 first) */

Definition at line 25 of file accuracy.h.

◆ ERROR_LIMIT

#define ERROR_LIMIT   60 /* How many errors to start a special practice on adaptability */

Definition at line 26 of file accuracy.h.

◆ MAX_CHARS_EVALUATED

#define MAX_CHARS_EVALUATED   130

Definition at line 23 of file accuracy.h.

◆ MAX_TT_SAVED

#define MAX_TT_SAVED   30

Definition at line 24 of file accuracy.h.

◆ PROFI_LIMIT

#define PROFI_LIMIT
Value:
2.2 /* How many times the 10th slowest key-touch-time should be relative to the 40th slowest one,
in order to start a special practice on adaptability */

Definition at line 27 of file accuracy.h.

◆ PROFI_LOG_FILE

#define PROFI_LOG_FILE   "proficiency.log"

Definition at line 22 of file accuracy.h.

◆ UTF8_BUFFER

#define UTF8_BUFFER   7

Definition at line 29 of file accuracy.h.

Function Documentation

◆ accur_close()

◆ accur_correct()

void accur_correct ( gunichar  uchr,
double  touch_time 
)

Accumulates correctly typed characters

Definition at line 265 of file accuracy.c.

References correct, dt, ERROR_INERTIA, i, idx, j, keyb_is_inset(), MAX_CHARS_EVALUATED, MAX_TT_SAVED, terror, terror_n, touch_time, ttime, ttime_n, uchr, and UPSYM.

Referenced by tutor_eval_forward(), and tutor_eval_forward_backward().

◆ accur_create_word()

gboolean accur_create_word ( gunichar *  word)

◆ accur_error_total()

gulong accur_error_total ( void  )

Definition at line 375 of file accuracy.c.

References i, terror, terror_n, and wrong.

Referenced by accur_create_word(), adapt_draw_random_pattern(), and plot_pointer_update().

◆ accur_init()

◆ accur_profi_aver()

gdouble accur_profi_aver ( gint  i)

◆ accur_profi_aver_norm()

gint accur_profi_aver_norm ( gint  i)

Definition at line 412 of file accuracy.c.

References accur_profi_aver(), idx, and ttime_n.

Referenced by accur_create_word().

◆ accur_reset()

void accur_reset ( void  )

Definition at line 69 of file accuracy.c.

References accur_terror_reset(), and accur_ttime_reset().

Referenced by accur_init(), and on_button_confirm_yes_clicked().

◆ accur_sort()

void accur_sort ( void  )

Definition at line 533 of file accuracy.c.

References accur_terror_sort(), and accur_ttime_sort().

Referenced by accur_close(), and tutor_process_touch().

◆ accur_terror_char_utf8()

gchar* accur_terror_char_utf8 ( gint  i)

Definition at line 88 of file accuracy.c.

References i, terror, terror_n, uchr, and UTF8_BUFFER.

Referenced by accur_close(), and plot_pointer_update().

◆ accur_terror_n_get()

gint accur_terror_n_get ( void  )

Definition at line 76 of file accuracy.c.

References terror_n.

Referenced by plot_error_frequencies().

◆ accur_terror_reset()

void accur_terror_reset ( void  )

Definition at line 55 of file accuracy.c.

References terror, and terror_n.

Referenced by accur_reset(), adapt_comment(), and on_button_confirm_yes_clicked().

◆ accur_terror_sort()

void accur_terror_sort ( void  )

Sorting first: decreasing wrongness; second: increasing correctness

Definition at line 430 of file accuracy.c.

References correct, i, j, terror, terror_n, uchr, and wrong.

Referenced by accur_sort(), and plot_error_frequencies().

◆ accur_ttime_char_utf8()

gchar* accur_ttime_char_utf8 ( gint  i)

Definition at line 106 of file accuracy.c.

References i, ttime, ttime_n, uchr, and UTF8_BUFFER.

Referenced by accur_close(), and plot_pointer_update().

◆ accur_ttime_n_get()

gint accur_ttime_n_get ( void  )

Definition at line 82 of file accuracy.c.

References ttime_n.

Referenced by adapt_draw_random_pattern(), and plot_touch_times().

◆ accur_ttime_reset()

void accur_ttime_reset ( void  )

Definition at line 62 of file accuracy.c.

References ttime, and ttime_n.

Referenced by accur_reset(), and on_button_confirm_yes_clicked().

◆ accur_ttime_sort()

void accur_ttime_sort ( void  )

Decreasing order, touch time

Definition at line 483 of file accuracy.c.

References accur_profi_aver(), dt, i, idx, j, MAX_TT_SAVED, ttime, ttime_n, and uchr.

Referenced by accur_sort(), and plot_touch_times().

◆ accur_wrong()

void accur_wrong ( gunichar  uchr)

Accumulates mistyped characters

Definition at line 329 of file accuracy.c.

References correct, i, keyb_is_inset(), MAX_CHARS_EVALUATED, terror, terror_n, uchr, UPSYM, and wrong.

Referenced by tutor_eval_forward(), and tutor_eval_forward_backward().

◆ accur_wrong_get()

gulong accur_wrong_get ( gint  i)

Definition at line 124 of file accuracy.c.

References i, terror, terror_n, and wrong.

Referenced by plot_error_frequencies().