Humdrum Extras

zscores examples


This page gives example input and output data for the zscores program. The output data from these tests can be compared to output on your platform using the same input file in order to determine if there is a problem with the zscores program. If the output you generate is not the same as the output listed in the individual tests, then something may be wrong with the compiled program or your computing environment (or a bug added to the program after the example output was generated).


Test Index

    Test 001:Basic behavior of the command: print only the processed spine.
    Test 002:By default, the first spine will be processed. Other spines can be selected with -f option.
    Test 003:If first spines are **kern data, they skip if no spine indicated.
    Test 004:Trying to access a field greater than exists in the file will select the last spine.
    Test 005:The analysis data can be appended to the input data.
    Test 006:The analysis data can be prepended to the input data.
    Test 007:The input data can be extracted from the input file contents.
    Test 008:Summary statistics of the input data can be extracted.
    Test 009:The shift (mean) and scale (standard deviation) comments can be suppressed.
    Test 010:The original data can replace corresponding data from input.
    Test 011:An externally specified mean and standard deviation can be given.
    Test 012:The original values can be reconstituted from the scale and shift values.
    Test 013:Input data can be extracted with complete location description in input.
    Test 014:Output data can also be extracted with complete location description in input.
    Test 015:Using sample standard deviation rather than population standard deviation.


Test 001: Basic behavior of the command: print only the processed spine.

The command:

     zscores input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 002: By default, the first spine will be processed. Other spines can be selected with -f option.

The command:

     zscores -f 2 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 003: If first spines are **kern data, they skip if no spine indicated.

The command:

     zscores input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 004: Trying to access a field greater than exists in the file will select the last spine.

The command:

     zscores -f 1000 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 005: The analysis data can be appended to the input data.

The command:

     zscores -a input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 006: The analysis data can be prepended to the input data.

The command:

     zscores -p input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 007: The input data can be extracted from the input file contents.

The command:

     zscores -i input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 008: Summary statistics of the input data can be extracted.

The command:

     zscores -s input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 009: The shift (mean) and scale (standard deviation) comments can be suppressed.

The command:

     zscores -a -S input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 010: The original data can replace corresponding data from input.

The command:

     zscores -S -f 3 input-file --replace > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 011: An externally specified mean and standard deviation can be given.

The command:

     zscores -m 6 -d 5 input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 012: The original values can be reconstituted from the scale and shift values.

The command:

     zscores -S -m 6 -d 5 --reverse input-file > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 013: Input data can be extracted with complete location description in input.

The command:

     zscores input-file -f 2 -i --full > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 014: Output data can also be extracted with complete location description in input.

The command:

     zscores input-file -f 2 --raw --full > output-file
using the following input, will generate the following output:

input-file:
output-file:
Test 015: Using sample standard deviation rather than population standard deviation.

The command:

     zscores input-file --sample > output-file
using the following input, will generate the following output:

input-file:
output-file: