Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000249ILNumerics[All Projects] Bugspublic2019-11-05 08:052019-11-05 08:05
Reporterho 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Summary0000249: Statistics.nanmean, norming error
Descriptionnanmean is missing division by norming factor after summing non-empty working dimensions.
Steps To Reproduceusing System;
using ILNumerics;
using static ILNumerics.Toolboxes.Statistics;
using static ILNumerics.ILMath;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            Array<double> _w = ILMath.ones(10,1);
            var NaNmean = nanmean(_w);
            Console.WriteLine(($"NaNmean : {NaNmean.GetValue(0).ToString()}"));
            var meanval = mean(_w);
           Console.WriteLine(($"mean : {meanval.GetValue(0).ToString()}"));
            var NaNSum = nansum(_w);
            Console.WriteLine(($"NaNSum : {NaNSum.GetValue(0).ToString()}"));
            var sumVal = sum(_w);
            Console.WriteLine(($"Sum : {sumVal.GetValue(0).ToString()}"));

            Console.ReadKey();
            //Console.WriteLine(($"NaNmean : {NaNmean.GetValue(0).ToString()}"));
        }
    }
}


Expected: 1. Found: 10
Additional InformationApparently in version 5 only.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-11-05 08:05 ho New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker