paired duos data with exclosure cages - glm

( I'm French sorry if English bad)
I need help on how treat my data. Tell me if its not the good place to ask that
For 12 weeks I have followed grass height for 4 grassland (ABCD). With 1 measurement per week per grassland.
In each grassland, I have placed an exclosure cage so animals cannot eat grass.
for each grassland :
A : 9 exlcosure cages
B : 6 exlcosure cages
C : 6 exlcosure cages
D : 8 exlcosure cages
measurements were done like this:
Once a Week
5 measurements per exclosure (each corner and middle) AND 5 measurements 10 meter in west (each corner and middle of an imaginary square)
SO each exclosore is paired with an imaginary corner where grass can be eaten.
so in total for exemple on grassland A :
65 mesurement on exclosure AND 65 on correspondant imaginary square
for 12 weeks
Here is the stat question: does the grass in exclosure is higher than in the imaginary square? ( I want to see if red deer uses my grassland, then determine which one are the best nor with places are most used in the grassland)
thanks
tell me if I need to do something to be more precise

Related

How To Find Remaining Distance To Move UIView Between 2 Points

SCENARIO
I am working on an application that keeps track of blood glucose levels into a graph. On the graph there are "markings" (ex: -200mg) going in vertical order along the y axis on the right side of the screen and "hours" (ex: -12:00 PM) will be along the x axis on the bottom of the graph. I have to plot out little 'dots' to display what the blood glucose level was throughout the way.
ISSUE
I am trying to calculate how to position the 'dots' in the correct time and mg level and I'm having difficulty calculating the positions. I can access the "markings" and retrieve it's marking.center.x to indicate which 'Time Slot' (x axis) and the marking.center.y to indicate which 'MG Level' the 'dot' needs to go into. Problem is it isn't always exactly 12:00 PM or 200mg where it will need to be placed. In fact that would be very rare.
WHAT I NEED
Based on the following variables:
dot.mgLevel
The dot will already know where it needs to go based on the information retrieved from the medical device. It will know the time and mgLevel to assign itself.
marking.mgLevel
The markings will each have evenly distributed values that such as -100mg, -200mg, -300mg ect...
timemarking.timeslot
Each time marking on the bottom will each have evenly distributed times allocated every 30 min. Such as -12:00PM, -12:30PM, -1:00PM ect...
If the dot has a mg Level of 330mg and the closest marking on the mg Level is 300mg, then I need to be able to calculate how much further up the dot needs to move from 300 going towards the 400mg marker.
SO...
If the distance between the markings are 100pt and the dot's mgLevel is 330mg, then I know that I need to move the dot from the 300mg marking toward the 400mg marking by exactly 30pt. That's because it's simple math because the distance between the markings is 100. But in real life it isn't 100, so I need to be able to calculate this.
MY ULTIMATE QUESTION
Say distance between markings is 241 and each marking represents multiples of a hundred. Say my dot has a mgLevel of 412. How do I calculate how far I need to move the dot so that it will be in the correct place?
I THINK?
I think I need to make 241 equal 100%. But I need help.
Distance between markings is 241pt
Markings are multiples of 100mg
1mg will occupy 2.41pt. So 412mg will occupy (2.41 * 412) pt. To know how much to move for the next dot, take the difference in mg and multiply by 2.41.
In general, if distance between 2 markings in points is d, markings are multiples of m, and desired accuracy is k decimal places, 1mg will occupy g:
let divisor = pow(10.0, Double(k))
let g = round((d/m)*divisor) / divisor

Want to set label value on TeeChart InnerTick VC++

I wanted to set label text value on TeeChart InnerTick using VC++. like we have below example (I wanted to set AAAA,BBBB,CCCC,DDDD values).
// Sorry i was not able to attach image.
Below mention chart we have created using CGraph. to get co-ordinates we are using SDKInfo property. i wanted to know that how can we get all these x axis,y axis values using TeeChart. Is there any API to get these co ordinates ?
1
X axis max (your data units)
2
X axis min (your data units)
3
Y axis max (your data units)
4
Y axis min (your data units)
5
X axis length (Graphics Server view units)
6
Y axis length (Graphics Server view units)
7
X origin (Graphics Server view units)
8
Y origin (Graphics Server view units)
9
Label font size (percentage of system font)
|
|
| AAAA BBBB CCC DDDD
|__________|____________________|___________________|__________________|________
| | | |
111 222 333 444
Thanks,
I'm not sure about what exact TeeChart version are you using so this answer may be a bit vague.
All binary installations of TeeChart come with a program we call "Features Demo". This program includes examples showing how to use the majority of features supported.
One of the examples is the "Custom Labels", you should find it under "All Features\Welcome !\Axes\Labels\Custom Labels" in the program.
Also, to convert axis values to screen pixels, all TeeChart versions provide "Calc*" functions for it. Ie, to convert the value 10 in the bottom axis to pixels, in TeeChart ActiveX:
XPix = tChart1.Axis.Bottom.CalcXPosValue(10);
Just note these functions need the chart to be drawn once so the internal properties have been initialized and the calculations can be correctly done.

what are the values in haarcascade frontalface .xml

in opencv frontalface cascade .xml file what are tree node threshold and left value
such as
3 7 14 4 -1. rect
3 9 14 2 2. rect
4.0141958743333817e-003 threshold
0.0337941907346249 left value
0.8378106951713562 right value
If u know what these values are represent plese give me solution
i assume following please correct me if i am wrong
1) there are 21 stage each stage contain weak classifier
2)3 7 14 -1 represent the rectangle where 3 and 7 (are corodinates of pixel that we need to sum for bright area )14 width and 4 height of image amd multiple that sumt with -1 (weight)
3)3 9 14 2 2 2 is a rect similar to above for dark area and calculate sum and multiple it with weight
4) now make the substraction from values in step (2) and (3) if sutraction < threshold then add left value else add right value
si=milarly for all feature in that stage now add all values from all feature if it is less than stage thershold then go for next stage else reject that area for detection
(5)up to how much stage i need to pass to confirm that it is a face is all
4.0141958743333817e-003 threshold what is reperesnt either the complete exponential value
or threshold range in between 4.0141958743333817e 3
please correct me if i am wrong
thanks in advance

Saving movement/path to database

I am creating a football simulation game and I would like to make a 2D view of match. My match is 90 minutes long and there are 22 players on the field. How could I save a movements/path for players so that it wouldn't take lots of space. I know I could save it something like
Minute: min,
Player: id,
X: xCoord,
Y: yCoord
and then just move objects with jQuery from point A to point B, but I am sure it isn't the best solution, because it would require lots of space and database entries.
I am using MongoDB, but all suggestions are welcome.
How do the players move? They move a little in each step of the main loop? Or they go in long straight lines and then make sudden turns and go in other straight lines? In the first case you would probably need to save each milisecond or so (each step of the main loop), or you could save their positions every ten steps or every second, etc. And the replay could interpolate the saved points (thought the replay would look "gross" like that, it could save a lot of space in your db). In the second case (straight lines), you could just save the points where the players turn in another direction. In this case you'll save their position, angle and speed (along with time, obviously).
The first table could be (the intervals could be more than 1ms, depending on the power of the machine):
PLAYER TIME(ms) X Y
1 0 0 0
1 1 0 2
1 2 0 4
1 3 0 7
1 4 0 10
1 5 4 13
While the second table would be:
PLAYER TIME(ms) X Y Dir Speed
1 0 0 0 90 2
1 2 0 4 90 3
1 4 0 10 60 5
or something like that. Dir is the direction in degrees. Hope that helps!

How can i color one sector

i'm using a line chart which represent number of players every 5 minutes on our servers and i would like to show a drop in the player count and to present it with coloring the particular sector between the two points where the drop occurred, i didn't find the option to do it,
for example the line of the player count is colored on blue and when the drop is occured i would like to represent only the drop in red so the rest of the line will stay blue.
is it possible? or even just to highlight the specific sector?
There is not a direct way of doing it(highcharts do not provide that kind of customisation yet, maybe they will if you can add a ticket in their website for this particular suggestion and if others vote up, they will consider implementing it). But you can get the result by doing a get around like this :
Instead of plotting everything in a single chart, split it into two :
1. Rise (color 1)
2. Dips (color 2)
See the pic below for more insight :
Where the values would be :
A B C
1 Rise Dip
2 2002 0.273966
3 2003 0.126777
4 2004 0.584197 0.584197
5 2005 0.898247
6 2006 0.560888
7 2007 0.144713
8 2008 0.632703
9 2009 0.604576
10 2010 0.779904
Just split the rise and dips into two different plots and you will get the result you want..
But you need to do some calculations at your end..:)

Resources