New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

CorrespondenceAnalysis

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

CorrespondenceAnalysis

Correspondence analysis implementation in javascript, works on server-side and client-side.

  • 0.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-57.14%
Maintainers
1
Weekly downloads
 
Created
Source

CorrespondenceAnalysis

Correspondence analysis implementation in javascript, works on server-side and client-side.

See a demo

What is Correspondance Analysis

See http://en.wikipedia.org/wiki/Correspondence_analysis.

Or for a more step by step tutorial, see http://www.micheloud.com/FXM/COR/E/index.htm

Installation

On nodejs/npm

npm install  --save CorrespondenceAnalysis

Example

Using nodejs

var CA = require("../../app/scripts/main.js");

var ca = new CA();

ca.rLegends = fs.read["Ain", "Aisne", "Allier", "Alpes de Hautes Provence", "Hautes Alpes"];
ca.cLegends = ["Jean", "Philippe", "Michel","Alain","Patrick"];

var data =

ca.setMatrix([
  [55,73,90,13,16],
  [12,41,16,0,0],
  [0,18,12,0,0],
  [3,9,0,0,0],
  [484,103,564,186,220]
]);

ca.draw(function(e){
  if(e){
    console.log("error ",e);
    return
  }
  console.log("Ending");
});

Dependencies

sandjs, seedjs, sandcli, numericjs are used on both server-side and client-side.

For client-side, the demo run with google-visualization.

For server-side, it runs with "canvas" npm module, so you need to install specific tools, to do that, follow the Node-canvas Wiki

sudo apt-get install libgif-dev

Build

To build sources run

sand server

in the folder. And get http://localhost:8899/require?query=CorrespondenceAnalysis/CorrespondenceAnalysis

Keywords

FAQs

Package last updated on 01 May 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc