Re: Issues accessing class attributes of external package distance function

Michael Hall <[email protected]> Fri, 15 Jul 2022 02:31:53 -0500
Newsgroups gmane.comp.ai.weka
Message-ID <[email protected]>

> On Jul 14, 2022, at 7:47 AM, Martin Trat <[email protected]> wrote:
> 
> public class DilcaDistance implements DistanceFunction, Serializable{
>  
>     // ...
>     
>     protected Vector<double[][]> matricesDilca;
>  

From java make a subclass with

public Vector<double[][]> matricesDilca;

Maybe call it something like AccessibleDilcaDistance

I’ve done similar with Weka before

Although I’m not exactly following your objections to the public Object[] getMatricesDilca() method.
I think you could in your subclass change that to return the actual Vector<double[][]> type if that is the problem?
My understanding of Python isn’t good enough to know how you would do that from there.

_______________________________________________
Wekalist mailing list -- [email protected]
Send posts to [email protected]
To unsubscribe send an email to [email protected]
To subscribe, unsubscribe, etc., visit https://list.waikato.ac.nz/postorius/lists/wekalist.list.waikato.ac.nz
List etiquette: http://www.cs.waikato.ac.nz/~ml/weka/mailinglist_etiquette.html