Issue 25478

Summary: Proposition of a new approch of regression.
Product: Calc Reporter: farfadet <le.farfadet.spatial>
Component: codeAssignee: AOO issues mailing list <issues>
Status: ACCEPTED --- QA Contact:
Severity: Trivial    
Priority: P3 CC: bjoern.milcke, issues, le.farfadet.spatial, maison.godard, robert.pollak, sgautier.ooo
Version: 680m24   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: FEATURE Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
Fitting library
none
The licence text.
none
A matrix library.
none
testing program
none
A vector library.
none
New code, hoping it solve memory problems.
none
New version, solving several problems.
none
New version, improved precision.
none
New version, improved computation time.
none
New version, improved memory gestion.
none
Some minors improvments. none

Description farfadet 2004-02-13 21:09:14 UTC
Hello !

   I propose a new approch to compute regression of function. You will find the
program test.cxx, which give some vision of the begining of my works. I have
many ideas to improve this. By compiling, you will obtain this message :

$ g++ test.cxx -o test
vector.hxx: In member function `T1 linearAlgebra::Vector<T1, T2>::operator[](T2)
const [with T1 = double, T2 = unsigned char]':
matrix.hxx:846:   instantiated from `linearAlgebra::Vector<T1, T2>
linearAlgebra::Matrix<T1, T2>::operator*(const linearAlgebra::Vector<T1, T2>&)
const [with T1 = double, T2 = unsigned char]'
fit.hxx:66:   instantiated from `linearAlgebra::Vector<T1, T2> fit(const
linearAlgebra::Matrix<T1, T2>&, const linearAlgebra::Vector<T1, T2>&, T2, T1)
[with T1 = double, T2 = unsigned char]'
fit.hxx:90:   instantiated from `linearAlgebra::Vector<T1, T2>
linearRegression(const T1*, const linearAlgebra::Vector<T1, T2>&, T2, T1) [with
T1 = double, T2 = unsigned char]'
test.cxx:39:   instantiated from here
vector.hxx:358: warning: comparison is always true due to limited range of data type
matrix.hxx: In member function `T1* linearAlgebra::Matrix<T1,
T2>::operator[](T2) const [with T1 = double, T2 = unsigned char]':
matrix.hxx:302:   instantiated from `T1 linearAlgebra::Matrix<T1,
T2>::columnNorm(const linearAlgebra::Matrix<T1, T2>&) const [with T1 = double,
T2 = unsigned char]'
matrix.hxx:517:   instantiated from `linearAlgebra::Matrix<T1, T2>
linearAlgebra::Matrix<T1, T2>::inverse(T1) const [with T1 = double, T2 =
unsigned char]'
fit.hxx:66:   instantiated from `linearAlgebra::Vector<T1, T2> fit(const
linearAlgebra::Matrix<T1, T2>&, const linearAlgebra::Vector<T1, T2>&, T2, T1)
[with T1 = double, T2 = unsigned char]'
fit.hxx:90:   instantiated from `linearAlgebra::Vector<T1, T2>
linearRegression(const T1*, const linearAlgebra::Vector<T1, T2>&, T2, T1) [with
T1 = double, T2 = unsigned char]'
test.cxx:39:   instantiated from here
matrix.hxx:881: warning: comparison is always true due to limited range of data type

   Don't be affraid, it's allright, you can execute test.

   Best regards.

                                     Yoann LE BARS,
                                     alias Le Farfadet Spatial
Comment 1 farfadet 2004-02-13 21:12:27 UTC
Created attachment 13116 [details]
Fitting library
Comment 2 farfadet 2004-02-13 21:13:16 UTC
Created attachment 13117 [details]
The licence text.
Comment 3 farfadet 2004-02-13 21:13:45 UTC
Created attachment 13118 [details]
A matrix library.
Comment 4 farfadet 2004-02-13 21:14:14 UTC
Created attachment 13119 [details]
testing program
Comment 5 farfadet 2004-02-13 21:14:43 UTC
Created attachment 13120 [details]
A vector library.
Comment 6 farfadet 2004-02-13 21:16:36 UTC
Adding myself to CC.
Comment 7 maison.godard 2004-02-13 21:29:06 UTC
adding myself to cc
Comment 8 maison.godard 2004-02-13 21:31:15 UTC
Hi Farfadet

on linear regression
pertubating the couple (-3.5,1) of constants with various modificators lead to 
convergency when the modfications tend to 0

Great Job

Laurent
Comment 9 sgautier.ooo 2004-02-13 22:13:44 UTC
adding me to cc - Sophie
Comment 10 farfadet 2004-02-13 23:10:37 UTC
I am sorry, I did not found a correct mime type for C++ sources, so I used patch
type, which is not precissly the good one.
Comment 11 ooo 2004-02-15 12:08:49 UTC
Yoann,

Sounds interesting, but before we can even consider to use your code we
need a signed JCA from you, see
http://www.openoffice.org/contributing.html
only LGPL for incorporated code would not be sufficient.

Eike
Comment 12 farfadet 2004-04-18 14:24:59 UTC
I have sign the JCA, the previous LGPL-only doesn't apply anymore to the code.
Comment 13 ooo 2004-04-19 10:08:39 UTC
Thanks, I'll take care of further proceeding. Discussion takes place on the
dev@sc.openoffice.org mailing list.
Comment 14 ooo 2004-04-19 10:10:06 UTC
Accepting self-declared responsibility..
Comment 15 stx123 2004-04-19 13:58:22 UTC
Eike, Yoann's JCA is listed now.
Thanks, Yoann.
Comment 16 farfadet 2004-04-28 12:29:13 UTC
Created attachment 14839 [details]
New code, hoping it solve memory problems.
Comment 17 farfadet 2004-04-28 12:33:21 UTC
The file fit.tar.bz2 is an archive compressed into bz2 format. It give a new
code. When unpacked, type make and the run testfit. The Makefile had been tested
with GNU/Linux and gcc. There is no warning message, the options are -g and -Wall.

I have still some problems with polynomial regression, I am working on it.
Comment 18 farfadet 2004-05-18 11:54:38 UTC
Created attachment 15324 [details]
New version, solving several problems.
Comment 19 farfadet 2004-05-18 11:55:59 UTC
fit05182004.tar.bz2 give a new version of the fitting stuff. Please test it.
Comment 20 farfadet 2004-12-06 01:09:21 UTC
Created attachment 20143 [details]
New version, improved precision.
Comment 21 farfadet 2004-12-06 01:11:49 UTC
fit-12062004.tar.bz2 give a new version of the code, with improved precision.
Computation times are much longuer too. To use it, please read readme.sxw or
readme.pdf.
Comment 22 farfadet 2004-12-17 05:43:22 UTC
Created attachment 20599 [details]
New version, improved computation time.
Comment 23 farfadet 2004-12-21 21:05:45 UTC
Created attachment 20748 [details]
New version, improved memory gestion.
Comment 24 farfadet 2005-01-04 09:56:20 UTC
Created attachment 21034 [details]
Some minors improvments.
Comment 25 bjoern.milcke 2005-04-11 16:54:02 UTC
Adding bm (working on charts) to CC
Comment 26 ooo 2007-08-27 16:51:22 UTC
Bjoern,

This may have gone overlooked during the new chart implementation. Did you use
these algorithms?

  Eike
Comment 27 Marcus 2017-05-20 11:11:51 UTC
Reset assigne to the default "issues@openoffice.apache.org".