resetCorrelationMatrix - Examples

In the following, an example call and the according return values using the resetCorrelationMatrix method of a DanubeClient instance are shown.

You can also download and try a set of working demo examples for each danube.ai service using the SDK here: https://gitlab.com/danube.ai/sdk

const { DanubeClient } = require('danube-sdk'); 

// Initialize a DanubeClient with your API key.
const danubeClient = new DanubeClient(
  'my-api-key',
);

async function runTest() {
  const resetCorrelationMatrixSuccess = await danubeClient.resetCorrelationMatrix();
}

runTest();

// Check if the correlation matrix has successfully been resetted.
console.log('Correlation matrix successfully resetted:', resetCorrelationMatrixSuccess);

/*
Correlation matrix successfully resetted: true
*/