New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@youwol/attribute

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@youwol/attribute

latest
npmnpm
Version
0.0.4
Version published
Maintainers
2
Created
Source

@youwol/attribute

Description

Allows to decompose series in other user-defined series.

Let say that you have a serie W with itemSize=6, meaning that items are potentially components of symmetric rank 2 tensors of dimension 3. Then, using this library, it is possible to get names and underlaying series of decompositions. For instance, it is possible to get the components (itemSize=1), eigen values (itemSize=1), eigen vectors(itemSize=3)... from this original W serie.

Example

// Create a manager according to a DataFrame df
const mng = new AttributeManager(df, [
    new PositionDecomposer,    // access to x, y and z
    new EigenValuesDecomposer, // access to the eigen values
])

// Get names with itemSize = 1 (scalar)
const names = mng.names(1) // ['x', 'y', 'z', 'S1', 'S2', 'S3']

const S1 = mng.serie(1, 'S1')

Documentation

Documentation can be found here

Use

To install the required dependencies:

yarn 

To build for development:

yarn build:dev

To build for production:

yarn build:prod

To test:

yarn test

FAQs

Package last updated on 16 May 2021

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