🚀. Socket Launch Week Day 3:Socket Firewall Now Blocks Malicious VS Code and Open VSX Extensions.Learn more
Sign In

crimemath

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crimemath

An npm package that allows users to access mathematical formulas for criminological/criminalistic/public safety purposes.

latest
npmnpm
Version
1.0.18
Version published
Maintainers
1
Created
Source

CRIMEMATH NPM Module

This package contains mathematical formulas for users to quickly calculate outputs they need for criminological/criminalistic/public safety research purposes. This package is geared towards students studying these topics but anyone can use this package. There will simply be a learning curve if you are no used to using math in this way.

Contact me at my website if there is a formula you would like me to add to the module.

GENERAL CRIMINOLOGY FORMULAS

//Crime Rate Formula
let result = crimeRate(crimesReported, population);
console.log(result);
//Clearance Rate Formula
let result = clearanceRate(reportedCrimesCleared, crimesReported);
console.log(result);
// Arrest Rate Formula
let result = arrestRate(arrests, population);
console.log(result);
// Crime Trend Rate Formula
// This formula is also referred to as the Percent Change Formula
let result = crimeTrendRate(currentYear, previousYear);
console.log(result);
// Police Personnel Rate Formula
let result = policePersonnelRate(policePersonnel, population);
console.log(result);

BALLISTICS FORMULAS

// Kinetic Energy Formula
let result = kineticEnergy(bulletVelocity, bulletMass);
console.log(result);
// Pounds to Grains Conversion Formula
let result = poundsToGrains(pounds);
console.log(result);
// Grains to Pounds Conversion Formula
let result = grainsToPounds(grains);
console.log(result);
// Ounces to Grains Conversion Formula
let result = ouncesToGrains(ounces);
console.log(result);
// Grains to Ounces Conversion Formula
let result = grainsToOunces(grains);
console.log(result);
// Grams to Grains Conversion Formula
let result = gramsToGrains(grams);
console.log(result);
// Grains to Grams Conversion Formula
let result = grainsToGrams(grains);
console.log(result);
// Inches to Millimeters Conversion Formula
let result = inchesToMillimeters(inches);
console.log(result);
// Millimeters to Inches Conversion Formula
let result = millimetersToInches(millimeters);
console.log(result);

FORENSIC TOXICOLOGY FORMULAS

// BAC Formula (Widmark)
// for genderConstant, assign 0.73 for men and 0.66 for women
let result = bacLevel(ouncesAlcoholConsumed, bodyweightPounds, genderConstant, hoursSinceStartedDrinking);
console.log(result);

Keywords

crime

FAQs

Package last updated on 27 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts