package Ġma ia . ml . lear ner . standard . ho eff ding tree . observer Ċ Ċ import Ġma ia . ml . lear ner . standard . ho eff ding tree . split . test . Split Test Ċ import Ġma ia . ml . lear ner . standard . ho eff ding tree . util . Ob served Class Distribution Ċ Ċ /** Ċ Ġ* ĠTODO : ĠWhat Ġclass Ġdoes . Ċ Ġ* Ċ Ġ* Ġ@ author ĠCore y ĠS ter ling Ġ( c ster lin Ġat Ġwa ik ato Ġdot Ġac Ġdot Ġnz ) Ċ Ġ*/ Ċ class ĠSplit Suggestion ( ĊĠĠĠ Ġval Ġsplit Test Ġ: ĠSplit Test ?, ĊĠĠĠ Ġresulting Class Dist ributions Ġ: ĠArray < Ob served Class Distribution >, ĊĠĠĠ Ġval Ġmer it Ġ: ĠDouble Ċ ) Ġ: ĠComparable < Split Suggestion > Ġ{ ĊĊĠĠĠ Ġval Ġresulting Class Dist ributions : ĠArray < Ob served Class Distribution > ĊĊĠĠĠ Ġinit Ġ{ ĊĠĠĠĠĠĠĠ Ġthis . result ing Class Dist ributions Ġ= Ġresulting Class Dist ributions . clone () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġcompare To ( other Ġ: ĠSplit Suggestion ) Ġ: ĠInt Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġmer it . compareTo ( other . mer it ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġval Ġnum Spl its : ĠInt ĊĠĠĠĠĠĠĠ Ġget () Ġ= Ġresulting Class Dist ributions . size ĊĊĠĠĠ Ġfun Ġresulting Class Distribution For Split ( ĊĠĠĠĠĠĠĠ Ġsplit Index : ĠInt ĊĠĠĠ Ġ): ĠOb served Class Distribution Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġresulting Class Dist ributions [ split Index ] ĊĠĠĠ Ġ} Ċ } Ċ