Skip to content
This repository was archived by the owner on Nov 19, 2020. It is now read-only.
This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Bug in Accord.Statistics.Analysis.DistributionAnalysis #301

@Burkhardus

Description

@Burkhardus

When I use a certain set of values, the distribution analysis compute is not finishing but hanging for infinite time. This is causing the application to stop working without any information why.

For my understanding there should be an error message if the data is not acceptable for computation or if an error occurs during computation.

Furthermore I don't understand why the problem happening only on some kind of data and on others not.

Imports Accord.Statistics
Imports Accord.Statistics.Analysis
Imports Accord.Statistics.Distributions

Public Class Form1

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

    Dim Working() As Double = {8.833, 8.385, 9.583, 9.002, 8.057, 9.052, 8.373, 10.768, 7.298, 7.701, 9.785, 7.606, 7.964, 8.914}

    Dim da1 As New DistributionAnalysis(Working)
    da1.Compute() ' here it works like intended
    MsgBox(da1.GoodnessOfFit(0).Name & " : " & da1.GoodnessOfFit(0).Distribution.ToString, vbOKOnly, "Result")

    Dim NotWorking() As Double = {1.003, 1.012, 1.011, 1.057, 1.033, 1.051, 1.045, 1.045, 1.037, 1.059, 1.028, 1.032, 1.029, 1.031, 1.029, 1.023, 1.035}

    Dim da2 As New DistributionAnalysis(NotWorking)
    da2.Compute() ' Here it hangs for no specific reason
    MsgBox(da2.GoodnessOfFit(0).Name & " : " & da2.GoodnessOfFit(0).Distribution.ToString, vbOKOnly, "Result")

End Sub

End Class

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions