Ticket #655 (new bug)

Opened 3 years ago

Distribution.normalize naj preveri ce je distribucija res prazna

Reported by: ales Owned by: janez
Milestone: Future Component: library
Severity: minor Keywords:
Cc: Blocking:
Blocked By:

Description

preden jo prepise

>>> dist  = orange.DiscDistribution(data.domain.classVar)
>>> dist[0] += 20
>>> print dist, dist.abs
<20.000, 0.000, 0.000>, 0.0
>>> dist.normalize()
>>> print dist
<0.333, 0.333, 0.333>

Dobro bi bilo tudi ce bi bila 'dist.abs' metoda (morda property).

Note: See TracTickets for help on using tickets.