Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    intensityjspublic

    intensityjs Build Status

    A library for calculate Japanese scale intensity of earth quake.

    Usage

    const intensityjs = require('intensityjs');
    
    const intensity = intensityjs.calc({
      rate: 0.01,
      data: {
        x: [
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4],
        y: [
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4],
        z: [
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4,
          0, 1, 2, 3, 4, 0, 1, 2, 3, 4],
      },
    });
    
    console.log(intensity); // => 1.7
    

    Keywords

    install

    npm i intensityjs

    Downloadsweekly downloads

    2

    version

    0.0.1

    license

    MIT

    repository

    githubgithub

    last publish

    collaborators

    • avatar