help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: kmeans is not right


From: PhilipNienhuis
Subject: RE: kmeans is not right
Date: Tue, 8 Dec 2015 09:40:52 -0800 (PST)

John Guin wrote
> -----Original Message-----
> From: help-octave-bounces+johnguin=

> hotmail.com@

> [mailto:help-octave-bounces+johnguin=

> hotmail.com@

> ] On Behalf Of John
> Guin
> Sent: Tuesday, December 08, 2015 7:26 AM
> To: 'JokerOne' <

> address@hidden

> >;

> help-octave@

> Subject: RE: kmeans is not right
> 
> Does the statistics package work with Octave 4.0?  When I try to install,
> I
> get an error that statistics needs io >= 1.0.18.  I have io 2.2.11
> installed.
> 
> Win7, if that matters.
> 
> John
> 
> 
> -----Original Message-----
> From: help-octave-bounces+johnguin=

> hotmail.com@

> [mailto:help-octave-bounces+johnguin=

> hotmail.com@

> ] On Behalf Of
> JokerOne
> Sent: Tuesday, December 08, 2015 3:55 AM
> To: 

> help-octave@

> Subject: Re: kmeans is not right
> 
> kmeans is a function of the statistics package. It is not a package of its
> own.
> 
> use
> pkg install -forge statistics
> 
> then see: 
> http://octave.sourceforge.net/statistics/function/kmeans.html
> 
> 
> -------------------
> 
> Found the error - just having the io package installed is not sufficient.
> You need to force load the io package before installing statistics:
> 
> pkg load io
> 
> then statistics will install without error.
> 
> Should I file a bug to have the error message say
> " statistics needs io >= 1.0.18 (is the package loaded?)"
> 
> It would be wordier, but might point people in the right direction.
> 
> (or just try to load required packages at pkg install time...)

Hmmm.... never knew that packages need to be loaded in order to be found by
the pkg.m function.

Remarkable, as it is the pkg.m function that writes the octave_packages file
in which the package database is kept.

A bug report would do well if this is reproducible. I never encountered
this.

BTW you can also install packages with the -nodeps flag. Dependency checks
are skipped then (at your own risk, that is).

Philip



--
View this message in context: 
http://octave.1599824.n4.nabble.com/kmeans-is-not-right-tp4673891p4673924.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]