enter image description here

I don't understand this question and I would really appreciate it if someone could help. So it starts off with explaining the Knapsack Problem then it asks me to write a function that calculates the mean of each sample. Does this mean all I need to do is write a function that takes an array (argument list) of arrays (Xi's) and returns the means of all the arrays (Xi's) in argument list? This is what I've understood from this question but I don't think it is that simple or correct as it doesn't make any use of the Knapsack problem details.

  • 1
    $\begingroup$ Don't use images as main content of your post. This makes your question impossible to search and inaccessible to the visually impaired; we don't like that. Please transcribe text and mathematics (note that you can use LaTeX) and don't forget to give proper attribution to your sources! $\endgroup$ – dkaeae May 23 at 12:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.