Page 3 of 4
Re: Function to calculate Standard Deviation
Posted: Mon Nov 30, 2020 12:32 am
by danielmaximiliano
MsgInfo ( "Correct!!" )
Re: Function to calculate Standard Deviation
Posted: Mon Nov 30, 2020 6:32 am
by RPC
Hi Claudio
Many thanks for taking the trouble to help me.
Re: Function to calculate Standard Deviation
Posted: Mon Nov 30, 2020 6:33 am
by RPC
AUGE_OHR wrote: ↑Sun Nov 29, 2020 10:46 pm
normal Prefix "lib" is not used
Hi Jimmy,
Thank you for pointing out my mistake.
It is working now.
Re: Function to calculate Standard Deviation
Posted: Mon Nov 30, 2020 6:37 am
by RPC
Hi Daniel
Thanks for providing libsuperlib.a file.
I could link it in my program and can now use standard deviation function.
However I still don't know how to make libsuperlib.a file from superli.lib or superlib program files.
Any guidance in this regard will be helpful
Thanks
Re: Function to calculate Standard Deviation
Posted: Mon Nov 30, 2020 6:38 am
by Claudio Ricardo
Hola...
Muchas Gracias Daniel Maximiliano por la libreria compilada...
Para probarlas armé un programita ejemplo de esas funciones sobre arrays de Superlib.
amSum () y amAverage me parecieron muy útiles para calcular sobre un grid que muestra un array
yo lo hacia con los comandos de Clipper Sum y Average sobre la DB antes de cargar el grid pero estos
evidentemente son más rápidos ya que lo hacen en ram y se puede hacer después de cargar el grid.
Además permiten filtrar por diferentes campos con codeblock.
Parametros: Nombre de array, Posición de la columna (numérica) a tratar, Codeblock condicionante (opcional)
Re: Function to calculate Standard Deviation
Posted: Mon Nov 30, 2020 10:34 am
by danielmaximiliano
RPC wrote: ↑Mon Nov 30, 2020 6:37 am
Any guidance in this regard will be helpful
Thanks
Hola RPC :
Superlib o conjunto de funciones se pueden descargar de su pagina oficial (codigo fuente) en mi caso lo baje desde otro origen.
despues se me dio buscar las superlib dentro de "Harbour" pero no estaba dentro de la carpeta contrib sino que estaba en la carpeta Extras, en ella encontre que Viktor Szakats dejo los archivos necesarios para compilar dicha libreria y los pasos necesarios (digno de Yo lo sé todo no leí el Readme.txty no aplique el patch necesario) usando MiBuild.bat(archivo de procesos por lotes) construí dicha superlib.
Hello RPC:
Superlib or set of functions can be downloaded from its official website (source code) in my case I downloaded it from another source.
later I was given to look for the superlibs inside "Harbour" but it was not inside the contrib folder but it was in the Extras folder, in it I found that Viktor Szakats left the necessary files to compile said library and the necessary steps (worthy of Me I know everything I did not read the Readme.txty and did not apply the necessary patch) using MyBuild.bat (batch file) I built said superlib.
Re: Function to calculate Standard Deviation
Posted: Tue Dec 01, 2020 7:23 am
by RPC
Hi Daniel
I did not understand the readme.txt provided by Viktor Szakats especially these lines
4.) Apply supplied patch to the source using GNU Patch:
patch -lNi superlib.patch
You have said instead of Viktor's instructions in readme.txt you have used mybuild.bat to build superlib libraray. If possible, can you share your mybuild.bat.
Many thanks
Re: Function to calculate Standard Deviation
Posted: Tue Dec 01, 2020 12:35 pm
by danielmaximiliano
RPC wrote: ↑Tue Dec 01, 2020 7:23 am
Hi Daniel
I did not understand the readme.txt provided by Viktor Szakats especially these lines
4.) Apply supplied patch to the source using GNU Patch:
patch -lNi superlib.patch
Hola a todos: aplicar un parche, un correccion a una porcion de codigo a veces representa una tarea tediosa y en algunos casos modificar manualmente esa correccion genera errores.
para ello tenemos
GNU Patch.exe para windows, desde la linea de comandos ejecutamos
patch -lNi superlib.patch, dentro de
superlib.patch indica que se debe parchear (reemplazar dichas lineas comentadas con el signo "-" por las lineas comentadas con el signo "+") al archivo que esta indicado en la primer linea
diff -u superori/between.c superpat/between.c
Hello everyone: applying a patch, a correction to a piece of code sometimes represents a tedious task and in some cases manually modifying that correction generates errors.
For this we have
GNU Patch.exe for windows, from the command line we execute
patch -lNi superlib.patch, inside
superlib.patch it indicates that it must be patched (replace said commented lines with the sign "-" by the commented lines with the "+" sign) to the file that is indicated in the first line
diff -u superori/between.c superpat/between.c
Re: Function to calculate Standard Deviation
Posted: Wed Dec 02, 2020 6:26 am
by RPC
danielmaximiliano wrote: ↑Tue Dec 01, 2020 12:35 pm
Hello everyone: applying a patch, a correction to a piece of code sometimes represents a tedious task and in some cases manually modifying that correction generates errors.
For this we have
GNU Patch.exe for windows, from the command line we execute
patch -lNi superlib.patch, inside
superlib.patch it indicates that it must be patched (replace said commented lines with the sign "-" by the commented lines with the "+" sign) to the file that is indicated in the first line
diff -u superori/between.c superpat/between.c
Hi Daniel
Thanks for elaborate explanation on applying patch.
From where can I get GNU patch.exe or there is a separate patch.exe for each program which is written by the program author. ?
Re: Function to calculate Standard Deviation
Posted: Wed Dec 02, 2020 5:31 pm
by danielmaximiliano
HI RPC: Link
http://gnuwin32.sourceforge.net/packages/patch.htm
patch - apply a diff file to an original
Synopsis
patch [options] [originalfile [patchfile]]
but usually just
patch -pnum <patchfile
Description
patch takes a patch file patchfile containing a difference listing produced by the diff program and applies those differences to one or more original files, producing patched versions. Normally the patched versions are put in place of the originals. Backups can be made; see the -b or backup option. The names of the files to be patched are usually taken from the patch file, but if there’s just one file to be patched it can specified on the command line as originalfile.