org.android.activityminer.model.configuration
Class Constants

Package class diagram package Constants
java.lang.Object
  extended by org.android.activityminer.model.configuration.Constants

public class Constants
extends Object

Class to wrap the constants used by the model


Field Summary
static String CLASS_FIELD_NAME
          Constant for the class field name in stored models/CSV exports
static String COLON
          String constants for a colon
static String COLUMN_DELIMITER
          The delimiter between columns for formatted String representations of the per class statistics.
static String CSV_QUOTE_CHAR
          CSV quote character
static float DEFAULT_ACC_MIN_CUTOFF_FREQ_FOR_FILTER
          The min cutoff frequency in Hz for the accelerometers adaptive low pass filter.
static float DEFAULT_ACC_SLOPE_FOR_FILTER
          The min cutoff slope for the accelerometers adaptive low pass filter.
static float DEFAULT_ACC_SMOOTH_FACTOR
          The smooth factor for the acceleration source low pass filter
static int DEFAULT_ACCURACY_THRESHOLD_FOR_EVALUATION
          Default value for the evaluation result selection.
static ClassifierTypes DEFAULT_CLASSIFIER
          The default classifier.
static long DEFAULT_COUNT_DOWN_TIME
          The default value for the count-down time (the delay) in seconds before recording is started
static int DEFAULT_CROSS_VALIDATION_K
          The default count of the partition subsets for cross validation (Parameter k).
static int DEFAULT_KNN_NEIGHBOR_COUNT
          The default value for the count of nearest neighbors for the knn-classifier.
static boolean DEFAULT_KNN_NORMALIZE
          Default value for attribute normalization by the KNN classifier
static long DEFAULT_RECORDING_TIME
          The maximum recording length in milliseconds for raw sensor data storage.
static boolean DEFAULT_USE_LOCATION_DATA
          The default constant for the use location data flag.
static String DOUBLE_CSV_QUOTE_CHAR
          The doubled quote character
static String EMPTY_STRING
          Empty string constant
static String EQUALS
          The equals symbol
static String FORMAT_FLOAT_PRECISION_0
          String constants for a percentage symbol.
static String FORMAT_FLOAT_PRECISION_3
          String constants for a percentage symbol.
static long INFINITE_WINDOW_SIZE
          Constant value for an infinite window size.
static int LOCATION_ACCURACY_DELTA
          Accuracy delta to indicate significantly more accurate location fixes
static float LOCATION_MIN_DISTANCE
          The minimal distance for location events in meters.
static int LOCATION_TIME_DELTA
          This is the time interval to charge a location fix as significantly newer than the old one.
static long LOW_SAMPLE_RATE
          The low sample rate for the sample taking task.
static byte[] MAGIC_SQLITE_HEADER
          The magic header of sql database files
static int MAX_CROSS_VALIDATION_K
          The maximum count of the partition subsets for cross validation (Parameter k).
static int MAX_KNN_NEIGHBOR_COUNT
          The maximum count of neighbors for the knn-classifier (Parameter k).
static int MAX_SELECTED_FEATURES_FOR_POWER_SET_EVAL
          The maximum feature count for a power set evaluation.
static long MAX_TOLERATED_ACC_SAMPLING_GAP
          The maximum tolerated gap between accelerometer sensor observation.
static long MAX_WAIT_TIME_FOR_NEW_LOCATION_FIX
          The maximum time in milliseconds to wait for new location fixes if current is deprecated.
static long MAXIMUM_SAMPLE_RATE
          The maximum sample rate for the sample taking task in milliseconds.
static long MAXIMUM_TIME_WINDOW
          The maximum time cut-out window for feature extraction in milliseconds.
static int MAXIMUM_TIME_WINDOW_OVERLAP
          The maximum overlap of time windows.
static int MIN_CROSS_VALIDATION_K
          The minimum count of the partition subsets for cross validation (Parameter k).
static int MIN_KNN_NEIGHBOR_COUNT
          The minimum count of neighbors for the knn-classifier (Parameter k).
static long MINIMUM_RECORDING_TIME
          The minimum recording length in milliseconds for raw sensor data storage.
static int MINIMUM_SAMPLE_COUNT_PER_LABEL
          The minimum count of existing samples (extracted feature vectors) for a label, necessary for evaluation.
static long MINIMUM_SAMPLE_RATE
          The minimum sample rate for the sample taking task.
static long MINIMUM_TIME_WINDOW
          The minimum time cut-out window for feature extraction in milliseconds.
static long MODERATE_SAMPLE_RATE
          The moderate sample rate for the sample taking task.
static String NEW_LINE
          The line separator
static int NO_OVERLAP
          Constant value for no overlap in frames.
static long NORMAL_SAMPLE_RATE
          The normal sample rate for the sample taking task.
static String PERCENTAGE
          String constants for a percentage symbol.
static String POINT
          String constants for a point
static String RECORDING_ID_FIELD_NAME
          Constant for the recording ID field name in stored models/CSV exports
static int REQUEST_CODE_FOR_DB_FILE
          The request code for database files for the file browser
static int REQUEST_CODE_FOR_EXPORT_DIR
          The request code for export directory for the file browser
static int REQUEST_CODE_FOR_MODEL_NAME
          The request code for model names
static String SEQUENCE_ID_FIELD_NAME
          Constant for the sequence ID field name in stored models/CSV exports
static String SLASH
          The forward slash symbol
static String SPACE
          Space character
static String STAR
          String constants for the star symbol.
static String TIMESTAMP_FIELD_NAME
          Constant for the time stamp field name in stored models/CSV exports
 
Constructor Summary
Constants()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAXIMUM_SAMPLE_RATE

public static final long MAXIMUM_SAMPLE_RATE
The maximum sample rate for the sample taking task in milliseconds.

See Also:
Constant Field Values

NORMAL_SAMPLE_RATE

public static final long NORMAL_SAMPLE_RATE
The normal sample rate for the sample taking task.

See Also:
Constant Field Values

MODERATE_SAMPLE_RATE

public static final long MODERATE_SAMPLE_RATE
The moderate sample rate for the sample taking task.

See Also:
Constant Field Values

LOW_SAMPLE_RATE

public static final long LOW_SAMPLE_RATE
The low sample rate for the sample taking task.

See Also:
Constant Field Values

MINIMUM_SAMPLE_RATE

public static final long MINIMUM_SAMPLE_RATE
The minimum sample rate for the sample taking task.

See Also:
Constant Field Values

MINIMUM_TIME_WINDOW

public static final long MINIMUM_TIME_WINDOW
The minimum time cut-out window for feature extraction in milliseconds.
This does determine the minimum duration to distinguish between activities.

See Also:
Constant Field Values

MAXIMUM_TIME_WINDOW_OVERLAP

public static final int MAXIMUM_TIME_WINDOW_OVERLAP
The maximum overlap of time windows.

See Also:
Constant Field Values

MAXIMUM_TIME_WINDOW

public static final long MAXIMUM_TIME_WINDOW
The maximum time cut-out window for feature extraction in milliseconds.
This does not limit the ability to record repetitive activities for a longer duration.

See Also:
Constant Field Values

DEFAULT_RECORDING_TIME

public static final long DEFAULT_RECORDING_TIME
The maximum recording length in milliseconds for raw sensor data storage.

See Also:
Constant Field Values

MINIMUM_RECORDING_TIME

public static final long MINIMUM_RECORDING_TIME
The minimum recording length in milliseconds for raw sensor data storage.

See Also:
Constant Field Values

MAX_SELECTED_FEATURES_FOR_POWER_SET_EVAL

public static final int MAX_SELECTED_FEATURES_FOR_POWER_SET_EVAL
The maximum feature count for a power set evaluation.

See Also:
Constant Field Values

DEFAULT_CROSS_VALIDATION_K

public static final int DEFAULT_CROSS_VALIDATION_K
The default count of the partition subsets for cross validation (Parameter k).

See Also:
Constant Field Values

MIN_CROSS_VALIDATION_K

public static final int MIN_CROSS_VALIDATION_K
The minimum count of the partition subsets for cross validation (Parameter k).

See Also:
Constant Field Values

MAX_CROSS_VALIDATION_K

public static final int MAX_CROSS_VALIDATION_K
The maximum count of the partition subsets for cross validation (Parameter k).

See Also:
Constant Field Values

DEFAULT_ACCURACY_THRESHOLD_FOR_EVALUATION

public static final int DEFAULT_ACCURACY_THRESHOLD_FOR_EVALUATION
Default value for the evaluation result selection. Evaluation results with an overall accuracy below this threshold will be ignored

See Also:
Constant Field Values

MINIMUM_SAMPLE_COUNT_PER_LABEL

public static final int MINIMUM_SAMPLE_COUNT_PER_LABEL
The minimum count of existing samples (extracted feature vectors) for a label, necessary for evaluation.

See Also:
Constant Field Values

INFINITE_WINDOW_SIZE

public static final long INFINITE_WINDOW_SIZE
Constant value for an infinite window size.

See Also:
Constant Field Values

NO_OVERLAP

public static final int NO_OVERLAP
Constant value for no overlap in frames.

See Also:
Constant Field Values

DEFAULT_ACC_SMOOTH_FACTOR

public static final float DEFAULT_ACC_SMOOTH_FACTOR
The smooth factor for the acceleration source low pass filter

See Also:
Constant Field Values

DEFAULT_ACC_MIN_CUTOFF_FREQ_FOR_FILTER

public static final float DEFAULT_ACC_MIN_CUTOFF_FREQ_FOR_FILTER
The min cutoff frequency in Hz for the accelerometers adaptive low pass filter. As lower the minimum cutoff frequency as more the slow speed jitter will be reduced.

See Also:
Constant Field Values

DEFAULT_ACC_SLOPE_FOR_FILTER

public static final float DEFAULT_ACC_SLOPE_FOR_FILTER
The min cutoff slope for the accelerometers adaptive low pass filter. As higher the slope value as more the high speed lag will be reduced.

See Also:
Constant Field Values

LOCATION_MIN_DISTANCE

public static final float LOCATION_MIN_DISTANCE
The minimal distance for location events in meters.

See Also:
Constant Field Values

LOCATION_TIME_DELTA

public static final int LOCATION_TIME_DELTA
This is the time interval to charge a location fix as significantly newer than the old one.

See Also:
Constant Field Values

DEFAULT_CLASSIFIER

public static final ClassifierTypes DEFAULT_CLASSIFIER
The default classifier.


DEFAULT_KNN_NEIGHBOR_COUNT

public static final int DEFAULT_KNN_NEIGHBOR_COUNT
The default value for the count of nearest neighbors for the knn-classifier.

See Also:
Constant Field Values

MIN_KNN_NEIGHBOR_COUNT

public static final int MIN_KNN_NEIGHBOR_COUNT
The minimum count of neighbors for the knn-classifier (Parameter k).

See Also:
Constant Field Values

MAX_KNN_NEIGHBOR_COUNT

public static final int MAX_KNN_NEIGHBOR_COUNT
The maximum count of neighbors for the knn-classifier (Parameter k).

See Also:
Constant Field Values

DEFAULT_USE_LOCATION_DATA

public static final boolean DEFAULT_USE_LOCATION_DATA
The default constant for the use location data flag.

See Also:
Constant Field Values

LOCATION_ACCURACY_DELTA

public static final int LOCATION_ACCURACY_DELTA
Accuracy delta to indicate significantly more accurate location fixes

See Also:
Constant Field Values

MAX_WAIT_TIME_FOR_NEW_LOCATION_FIX

public static final long MAX_WAIT_TIME_FOR_NEW_LOCATION_FIX
The maximum time in milliseconds to wait for new location fixes if current is deprecated.

See Also:
Constant Field Values

DEFAULT_COUNT_DOWN_TIME

public static final long DEFAULT_COUNT_DOWN_TIME
The default value for the count-down time (the delay) in seconds before recording is started

See Also:
Constant Field Values

NEW_LINE

public static final String NEW_LINE
The line separator


REQUEST_CODE_FOR_DB_FILE

public static final int REQUEST_CODE_FOR_DB_FILE
The request code for database files for the file browser

See Also:
Constant Field Values

REQUEST_CODE_FOR_MODEL_NAME

public static final int REQUEST_CODE_FOR_MODEL_NAME
The request code for model names

See Also:
Constant Field Values

REQUEST_CODE_FOR_EXPORT_DIR

public static final int REQUEST_CODE_FOR_EXPORT_DIR
The request code for export directory for the file browser

See Also:
Constant Field Values

CSV_QUOTE_CHAR

public static final String CSV_QUOTE_CHAR
CSV quote character

See Also:
Constant Field Values

DOUBLE_CSV_QUOTE_CHAR

public static final String DOUBLE_CSV_QUOTE_CHAR
The doubled quote character

See Also:
Constant Field Values

MAGIC_SQLITE_HEADER

public static final byte[] MAGIC_SQLITE_HEADER
The magic header of sql database files


SPACE

public static final String SPACE
Space character

See Also:
Constant Field Values

POINT

public static final String POINT
String constants for a point

See Also:
Constant Field Values

COLON

public static final String COLON
String constants for a colon

See Also:
Constant Field Values

SLASH

public static final String SLASH
The forward slash symbol

See Also:
Constant Field Values

EQUALS

public static final String EQUALS
The equals symbol

See Also:
Constant Field Values

PERCENTAGE

public static final String PERCENTAGE
String constants for a percentage symbol.

See Also:
Constant Field Values

STAR

public static final String STAR
String constants for the star symbol.

See Also:
Constant Field Values

FORMAT_FLOAT_PRECISION_3

public static final String FORMAT_FLOAT_PRECISION_3
String constants for a percentage symbol.

See Also:
Constant Field Values

FORMAT_FLOAT_PRECISION_0

public static final String FORMAT_FLOAT_PRECISION_0
String constants for a percentage symbol.

See Also:
Constant Field Values

EMPTY_STRING

public static final String EMPTY_STRING
Empty string constant

See Also:
Constant Field Values

CLASS_FIELD_NAME

public static final String CLASS_FIELD_NAME
Constant for the class field name in stored models/CSV exports

See Also:
Constant Field Values

TIMESTAMP_FIELD_NAME

public static final String TIMESTAMP_FIELD_NAME
Constant for the time stamp field name in stored models/CSV exports

See Also:
Constant Field Values

RECORDING_ID_FIELD_NAME

public static final String RECORDING_ID_FIELD_NAME
Constant for the recording ID field name in stored models/CSV exports

See Also:
Constant Field Values

SEQUENCE_ID_FIELD_NAME

public static final String SEQUENCE_ID_FIELD_NAME
Constant for the sequence ID field name in stored models/CSV exports

See Also:
Constant Field Values

DEFAULT_KNN_NORMALIZE

public static final boolean DEFAULT_KNN_NORMALIZE
Default value for attribute normalization by the KNN classifier

See Also:
Constant Field Values

COLUMN_DELIMITER

public static final String COLUMN_DELIMITER
The delimiter between columns for formatted String representations of the per class statistics.

See Also:
Constant Field Values

MAX_TOLERATED_ACC_SAMPLING_GAP

public static final long MAX_TOLERATED_ACC_SAMPLING_GAP
The maximum tolerated gap between accelerometer sensor observation.

See Also:
Constant Field Values
Constructor Detail

Constants

public Constants()