Function to calculate Standard Deviation
Moderator: Rathinagiri
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Function to calculate Standard Deviation
MsgInfo ( "Correct!!" )
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: Function to calculate Standard Deviation
Hi Claudio
Many thanks for taking the trouble to help me.
Re: Function to calculate Standard Deviation
Hi Jimmy,AUGE_OHR wrote: ↑Sun Nov 29, 2020 10:46 pm normal Prefix "lib" is not usedCode: Select all
libs=superlib
Thank you for pointing out my mistake.
It is working now.
Re: Function to calculate Standard Deviation
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
- Claudio Ricardo
- Posts: 367
- Joined: Tue Oct 27, 2020 3:38 am
- DBs Used: DBF, MySQL, MariaDB
- Location: Bs. As. - Argentina
Re: Function to calculate Standard Deviation
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)
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)
- Attachments
-
- Funciones_am.zip
- (1.47 MiB) Downloaded 103 times
Corrige al sabio y lo harás más sabio, Corrige al necio y lo harás tu enemigo.
WhatsApp / Telegram: +54 911-63016162
WhatsApp / Telegram: +54 911-63016162
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Function to calculate Standard Deviation
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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: Function to calculate Standard Deviation
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
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
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Function to calculate Standard Deviation
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
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
Re: Function to calculate Standard Deviation
Hi Danieldanielmaximiliano 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
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. ?
- danielmaximiliano
- Posts: 2625
- Joined: Fri Apr 09, 2010 4:53 pm
- Location: Argentina
- Contact:
Re: Function to calculate Standard Deviation
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.
*´¨)
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO
¸.·´¸.·*´¨) ¸.·*¨)
(¸.·´. (¸.·` *
.·`. Harbour/HMG : It's magic !
(¸.·``··*
Saludos / Regards
DaNiElMaXiMiLiAnO
Whatsapp. := +54901169026142
Telegram Name := DaNiElMaXiMiLiAnO