i am working on ubuntu. what i would like to do is carry out some simple statistical analysis on a 3D image (columns, rows, bands), for instance a linear regression on all the bands of a particular...
Type: Posts; User: bored_guy
i am working on ubuntu. what i would like to do is carry out some simple statistical analysis on a 3D image (columns, rows, bands), for instance a linear regression on all the bands of a particular...
hi,
is there some package/source code that is out there that i can use for linear regression and statistical analysis (in particular, hypothesis testing and p-value generation)?
i think the...
i see.
there are these 2 c routines in numerical recipes, named amoeba.c and amotry.c, that i wish to implement in my program. the amoeba.c is a nonlinear regression routine that calls on...
hi adak, i am sorry i catch no ball..
hi,
i have some specific questions to ask about implementing this downhill simplex routine called amoeba.c, from the book Numerical Recipes, 2nd ed. the questions may be rather...
i think i will just use some routines from numerical recipes for my problem. levmar is a bit difficult for me at the moment. thanks for your help.
thanks for the suggestions. i have downloaded the levmar algorithm from the levmar website, and then following the instructions in the FAQ and accompanying readme, i then went on to get lapack. i got...
hi, thanks for the replies. i use the curve-fitting solver tool in Excel quite frequently for my other straightforward curve-fitting problems. however, right now, what i need to do is to apply...
hi,
i have a rather long non-linear equation with 8 variables that i need to optimize. is there some package/library of ready-made curve fitting c codes that i can use?
thanks!
hi,
i am writing a simple program whereby the user is asked to key in the full path of a folder, and then the program is to search for a file with a particular name, open it for processing, and...
the code looks something like this:
float *in1 = malloc(size * sizeof(float));
float *in2 = malloc(size * sizeof(float));
float *in3 = malloc(size * sizeof(float));
...
thx got it!
i notice that when my program outputs files that are >1GB in size, it always crashes with a 'segmentation fault'. i was told that this is because my computer has a RAM of 1GB, so if my program uses...
is there an efficient way to read a numbers-and-text file? what i am currently doing is to use fgets() to read in a file line by line, and for each line i use strstr() to find if my desired quantity...
hi adak, thanks for the code. i have solved my problem, simply by using
fread(band1, sizeof(float), size, infile);
fread(band2, sizeof(float), size, infile);
fread(band3, sizeof(float),...
i have a further question on another segment of my code.
i now have a binary file that has 3 rasters arranged via BSQ. i know how many pixels each raster has, and also know that each value is...
oh i see. thanks for the pointer!
hey thanks loads rockymarrone, that did it!
yes, i compiled on command line using gcc -Wall. no compile- or run-time errors/warnings whatsoever.
which part of my code caused the last line of...
i used the following code to read a file (infile) and write every read line to outfile as floating point numbers. everything goes smoothly except that the last line of infile is always written to...
thanks for all the suggestions. however, i have not really grasped the concept of pointers, and since my text files (well, some are binary) are rather straightforward and i am only extracting a few...
i have written the following:
FILE *infile;
infile = fopen("some_text_file", "r");
char str[10000];
fgets(str, 10000, infile);
printf("this is the string: %s\n", str);...
yes, the file is sorted in such a way that it is like a table, in the sense that each row starts with a word (a scientific quantity, really), and then this is followed by 3 numbers, separated by...
hi,
i have a 3-page text file which contains both text and numbers. i wish to jump to the 3rd page (to save computation time), read the words in that page word by word, and each word that i read i...
hey thx ppl that pretty much clears it
thx guys. but if i get things like
#define OK (0)
#define NOT_OK (-1)
does that mean you can actually pass arguments to 'OK' and 'NOT_OK'? i was under the impression that these are...