Search Results

Search: Posts Made By: ardy_yana
13,493
Posted By Scrutinizer
j is used for the (known) x coordinates, i is...
j is used for the (known) x coordinates, i is used for all (inter/extrpolated) coordinates, the left x-coordinate is called s and the right x-coordinate is t.

so this checks to see if a shift to...
13,493
Posted By Scrutinizer
Hi, Some pointers: array P contains the...
Hi,

Some pointers:

array P contains the array of points, x is the index
array I contains the sequence of x coordinates

These arrays get filled while processing the file
After that is done...
13,493
Posted By Scrutinizer
Hi, Try this: awk ' { P[$1]=$2 ...
Hi, Try this:
awk '
{
P[$1]=$2
I[i++]=$1
}
END{
j=0; s=I[j]; t=I[j+1]
for(i=m;i<=n;i++){
if(I[j+2] && i>t){
j++; s=I[j]; t=I[j+1]
}
...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy