sixarm_shell_statistics

SixArm.com » Shell » Statistics commands

https://github.com/sixarm/sixarm_shell_statistics

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (6.0%) to scientific vocabulary

Keywords

awk numcommand scripts shell statistics unix
Last synced: 6 months ago · JSON representation ·

Repository

SixArm.com » Shell » Statistics commands

Basic Info
  • Host: GitHub
  • Owner: SixArm
  • Language: Shell
  • Default Branch: main
  • Size: 49.8 KB
Statistics
  • Stars: 0
  • Watchers: 2
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Topics
awk numcommand scripts shell statistics unix
Created about 11 years ago · Last pushed 10 months ago
Metadata Files
Readme Contributing Code of conduct Citation Codeowners

README.md

Shell » NUMS: Numbers Utilities for Mathematics and Statistics

Numbers utilities including mathematics and statistics.

These shell scripts calculate based on lists of numbers.

Example:

$ echo "1 2 4" | num --sum
7

See the num script for details and options.

This repo also contains a bunch of simplified awk scripts to calculate on numbers:

  • num-col-count, num-row-count: Print the count, i.e. how many columns or rows.
  • num-col-min, num-row-min: Print the minimum number.
  • num-col-max, num-row-max: Print the maximum number.
  • num-col-range, num-row-range: Print the range of the numbers.
  • num-col-sum, num-row-sum: Print the sum of the numbers.
  • num-col-median, num-row-median: Print the median of the numbers.
  • num-col-mean, num-row-mean: Print the mean of the numbers, i.e. the average.
  • num-col-sum-of-squares, num-row-sum-of-squares: Print the sum of squares of the numbers.
  • num-col-variance, num-row-variance: Print the variance of the numbers.
  • num-col-standard-deviation, num-row-standard-deviation: Print the standard deviation of the numbers.
  • num-col-coefficient-of-variance, num-row-coefficient-of-variance: Print the coefficient of variance of the numbers.

Examples

Example scripts:

$ echo "1 2 4" | num-col-count
3

$ echo "1 2 4" | num-col-min
1

$ echo "1 2 4" | num-col-max
4

$ echo "1 2 4" | num-col-range
3

$ echo "1 2 4" | num-col-sum
7

$ echo "1 2 4" | num-col-median
2

$ echo "1 2 4" | num-col-mean
2.33333

$ echo "1 2 4" | num-col-ss
4.66667

$ echo "1 2 4" | num-col-sd
1.24722

$ echo "1 2 4" | num-col-cv
0.534523

$ echo "1 2 4" | num-col-all
count: 3 min: 1 max: 4 range: 3 sum: 7 median: 2 mean: 2.33333 ss: 4.66667 sd: 1.24722 cv: 0.534523

Requirements

These statistics scripts are simple:

  • They are implemented using the shell command awk, and do not need any higher-level languages.

  • For more power, we recommend the R language: http://www.r-project.org/

Help

Sample code to split a column-oriented list of numbers into a row-oriented list of numbers:

echo "1 2 4" | tr ' ' '\n'

echo "1 2 4" | sed 's/\s\+/\n/g'

echo "1 2 4" | awk '{for(i=1;i<=NF;i++) print $i}'

Owner

  • Name: SixArm
  • Login: SixArm
  • Kind: organization
  • Email: sixarm@sixarm.com
  • Location: San Francisco

SixArm Software

Citation (CITATION.cff)

cff-version: 1.2.0
title: Shell » NUMS: Numbers Utilities for Mathematics and Statistics
message: >-
  If you use this work and you want to cite it,
  then you can use the metadata from this file.
type: software
authors:
  - given-names: Joel Parker
    family-names: Henderson
    email: joel@joelparkerhenderson.com
    affiliation: joelparkerhenderson.com
    orcid: 'https://orcid.org/0009-0000-4681-282X'
identifiers:
  - type: url
    value: 'https://github.com/SixArm/sixarm_shell_statistics/'
    description: Shell » NUMS: Numbers Utilities for Mathematics and Statistics
repository-code: 'https://github.com/SixArm/sixarm_shell_statistics/'
abstract: >-
  Shell » NUMS: Numbers Utilities for Mathematics and Statistics
license: See license file

GitHub Events

Total
  • Push event: 1
Last Year
  • Push event: 1

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 36
  • Total Committers: 1
  • Avg Commits per committer: 36.0
  • Development Distribution Score (DDS): 0.0
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Joel Parker Henderson j****l@j****m 36
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 11 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels