Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7908171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:48:32+00:00 2026-06-03T11:48:32+00:00

I want to compute covariance using PDL , but the problem is that it

  • 0

I want to compute covariance using PDL, but the problem is that it always shows an error:

Undefined subroutine &main::cov called at line 12.

Can anyone tell me where I’m making a mistake?

#! usr/bin/perl

use strict;
use warnings;
use PDL;

my $a = random(5, 3);
my $b = random(5, 3);

print "$a\n$b\n";

my $cov = cov($a, $b);     #line 12

print "$cov\n";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T11:48:34+00:00Added an answer on June 3, 2026 at 11:48 am

    That error message tells you that a function named cov is not exported by default by PDL. If I search the PDL CPAN page (using the grep tool), I do not see a function named cov.

    A google search yields PDL::Stats::Basic, which has a cov function.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to ask how to add a computed column in BIRT that compute
I am using CoreGraphics to draw a quadratic bezier but want to computer the
I want install android on my computer but using the sdk it fails to
I want to compute the minimum size both vertical and horizontal that will contain
I have a field that I want to compute based on a string and
I want to calculate covariance matrix using Java. Is there any free library to
Given an array A[1..n] , we want to compute another array B[1..n] such that
I'm trying to compute Pi, but what I really want to achieve is efficiency
I want to compute an md5 hash not of a string, but of an
i want to compute intersection line, given by 2 planes. my main program gives

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.