text stringlengths 0 27.6k | python int64 0 1 | DeepLearning or NLP int64 0 1 | Other int64 0 1 | Machine Learning int64 0 1 | Mathematics int64 0 1 | Trash int64 0 1 |
|---|---|---|---|---|---|---|
I have to do some work with Q Learning, about a guy that has to move furniture around a house (it's basically that). If the house is small enough, I can just have a matrix that represents actions/rewards, but as the house size grows bigger that will not be enough. So I have to use some kind of generalization function f... | 0 | 1 | 0 | 0 | 0 | 0 |
Is there a way to use poiter arithmetic on a large malloc block, so you can assign multiple structs or primitive data types to that area already allocated? I'm writing something like this but it isnt working (trying to assign 200 structs to a 15000byte malloc area):
char *primDataPtr = NULL;
typedef struct Metadata M... | 0 | 0 | 0 | 0 | 1 | 0 |
So I have a very simple game going here..., right now the AI is nearly perfect and I want it to make mistakes every now and then. The only way the player can win is if I slow the computer down to a mind numbingly easy level.
My logic is having a switch case statement like this:
int number = randomNumber
case 1:
comput... | 0 | 1 | 0 | 0 | 0 | 0 |
How can you find the sin(i) with Sage?
I am trying to do some complex analysis with Sage.
The following commands are not working
sin(i)
sinh(i)
| 0 | 0 | 0 | 0 | 1 | 0 |
There is another post here about Atan but I dont see any relevant answers:
C# - Why Math.Atan(Math.Tan(x)) != x?
Isn't Math.Atan the same as tan-1? On my calculator I do:
tan-1(1) and i get 45.
tan(45) = 1
In C#:
Math.Atan(1) = 0.78539816339744828 //
nowhere near the 45.
Math.Tan(45) = 1.6197751905438615 //1
dp ... | 0 | 0 | 0 | 0 | 1 | 0 |
I am looking at writing a compiler and after I complete something in a "C" style I am looking at adapting it to other models. What are some syntactical constructs you would expect to see in a "natural" programming language?
The target platform for this compiler will be the CLR and I am currently using Oslo+MGrammar ... | 0 | 1 | 0 | 0 | 0 | 0 |
I remember reading about an automation program for windows that would accept a list of commands like this:
press the ok button
put "hello world" into the text control
press the add button
etc etc. Can anyone name this program? A thousand thankyous.
| 0 | 1 | 0 | 0 | 0 | 0 |
I have a polyline that approximates a curve, and I want to draw it as a smooth curve in PostScript, which supports Bezier curve drawing. To do that, I need to generate two control points between each pair of polyline points. (I can't get the original curve from the source, just the polyline.)
I've had some success usi... | 0 | 0 | 0 | 0 | 1 | 0 |
in this web http://www.fonerbooks.com/interest.htm, it has example to calculate mortgage.
for example:
the loan = 100.000
interest 5%/year
payment : 12.000/month
we got this table (on the web, 3rd table)
Year Principal Interest Payment
One 100,000 5,000 12,000
Two 93,000 4,65... | 0 | 0 | 0 | 0 | 1 | 0 |
Could anybody please tell me whether I can perform this integration with FFT in MATLAB? How?
Please answer as soon as possible with the details.
Suppose there exists 2 rectangular planes, say, input accessed by x1 and y1 variables and the resulting plane is output accessed by tetax and tetay variables.
This is the inte... | 0 | 0 | 0 | 0 | 1 | 0 |
I implemented Hough Transform in C# this way:
List<Point> forme = new List<Point>();
forme.Add(new Point(260, 307));
forme.Add(new Point(268, 302));
forme.Add(new Point(273, 299));
forme.Add(new Point(279, 295));
forme.Add(new Point(285, 292));
forme.Add(new Poi... | 0 | 0 | 0 | 0 | 1 | 0 |
My objective is to supply 2 image files, and get a true/false response as to whether these 2 files could be the same (within an acceptable degree of certainty).
I realize this question falls under artificial intelligence and is much more complex than it appears, so I highly doubt I could (or would even want to) do it ... | 0 | 1 | 0 | 0 | 0 | 0 |
I have a particular application that needs to calculate something very specific, and while I excel at logic, math has always been my weak spot.
Given a number, say -20, it needs to apply a calculation of a 100 base (that is, the base is 100, not 0. not to be confused with base 100 which would be something else totally... | 0 | 0 | 0 | 0 | 1 | 0 |
Given four binary vectors which represent "classes":
[1,0,0,0,0,0,0,0,0,0]
[0,0,0,0,0,0,0,0,0,1]
[0,1,1,1,1,1,1,1,1,0]
[0,1,0,0,0,0,0,0,0,0]
What methods are available for classifying a vector of floating point values into one of these "classes"?
Basic rounding works in most cases:
round([0.8,0,0,0,0.3,0,0.1,0,0,0]) =... | 0 | 0 | 0 | 1 | 0 | 0 |
Update
Just for future reference, I'm going to list all of the statistics that I'm aware of that can be maintained in a rolling collection, recalculated as an O(1) operation on every addition/removal (this is really how I should've worded the question from the beginning):
Obvious
Count
Sum
Mean
Max*
Min*
Median**
Les... | 0 | 0 | 0 | 0 | 1 | 0 |
I am asking this question because I know there are a lot of well-read CS types on here who can give a clear answer.
I am wondering if such an AI exists (or is being researched/developed) that it writes programs by generating and compiling code all on it's own and then progresses by learning from former iterations. I a... | 0 | 1 | 0 | 1 | 0 | 0 |
Solve this equation for x, (1 + x)^4=34.5 . I am interested in the math libraries you'd use.
the equation is MUCH SIMPLER (1 + x)^4=34.5
thanks
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a 1-dimensional float array of root mean square values, each calculated with the same window length. Let's say
RMS = {0, 0.01, 0.4, ... }
Now the RMS for a larger window, which can be represented as a range of the original windows, can be calculated as the RMS of the "participating" RMS values from RMS[i] to RM... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm creating an ELIZA-like chatterbot, and I'd like to calibrate it with Omegle, using what the other person type as the input.
If it was a regular HTML page, I could parse it and send back the response to some script, but checking the source code, I've noticed that the entire page is created using Javascript, but obf... | 0 | 1 | 0 | 0 | 0 | 0 |
When attemptiing to solve the below assignment :
Using the Arithmetic operators ( +,-,*,/) rearrange four fives to equal the number 1 to 10.
Example : 5/5+5-5 =1 ,5/5+5/5=2
I tried in C# without using Linq (I don't know how to proceed further)
public void GetDetails()
{
char[] sym = new char[] { '+', '-', ... | 0 | 0 | 0 | 0 | 1 | 0 |
This is for a game in a flash AS3 only project.
the player controls a character with a gun. By clicking on the screen the gun fires a missile in an arc to the point clicked.
Whats the best way to calculate the x and y co-ordinates of the missile for each frame?
| 0 | 0 | 0 | 0 | 1 | 0 |
It is described as -||xi-xy||^2.
So for 2 two dimensional points do I code it like this?
- ((x1-x2) + (y1-y2))^2
or
-( (x1-x2)^2 + (y1-y2)^2 )
or
-(sqrt( (x1-x2)^2 + (y1-y2)^2 ))
or some other way?
| 0 | 0 | 0 | 0 | 1 | 0 |
My integers in Ruby (MRI) refuse to overflow. I've noticed the class change from fixnum to bignum but I'm wondering how this is modeled and what sort of process ruby uses to perform arithmetic on these massive integers. I've seen this behaviour in SCHEME as well as other environments.
I ask because I'd like to impleme... | 0 | 0 | 0 | 0 | 1 | 0 |
How would you write SO's Popularity algorithm in MySQL?
The algorithm is detailed here: Popularity algorithm.
thanks!
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a list of items. When I create the list each item has equal chance to be selected. But as an item is selected its chance goes down while the others chance goes up. If a new item is added during the process, it should have the highest chance to be selected with its chances falling off as it is selected. I am ... | 0 | 0 | 0 | 0 | 1 | 0 |
I've tried searching for logarithm + objective-c, but all I get is math test pages from teachers, or explanations what a logarithm is ;)
I've got some measurements that are like 83912.41234 and others are 32.94232. I need to press down this huge spectrum into something between 0 and 100, and that 32.94232 would habe to... | 0 | 0 | 0 | 0 | 1 | 0 |
I've been sitting with a pencil for the better part of the evening trying to recall how to implement a scalable viewport that can navigate a 2D area. It's been a while since I've first heard of it, but I think I've figured it out, I just need to verify.
We have a 2D world with a "classic" cartesian coordinate system, x... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a simple question regarding the Minimax algorithm: for example for the tic-tac-toe game, how do I determine the utility function's for each player plays? It doesn't do that automatically, does it? I must hard-code the values in the game, it can't learn them by itself, does it?
| 0 | 1 | 0 | 0 | 0 | 0 |
I want to solve x. How can I do it in Scheme?
T1-F2=0
F1+T2=GM-Gm
Cos(60)(2.5*Gm+x*GM-l*F1)-l*Sin(60)*T1=0
F1=0.1*T1
F2=0.3*T2
M=20
m=80
l=5
My try is:
(lambda T1 . ;; T1=F2
(lambda F2 . ;; F2=0.3*T2
(lambda F1 . ;; F1=0.1*T1
(lambda Gm .
( lambda GM .
(-
( * 1/2
... | 0 | 0 | 0 | 0 | 1 | 0 |
From this site: http://www.toymaker.info/Games/html/vertex_shaders.html
We have the following code snippet:
// transformations provided by the app, constant Uniform data
float4x4 matWorldViewProj: WORLDVIEWPROJECTION;
// the format of our vertex data
struct VS_OUTPUT
{
float4 Pos : POSITION;
};
// Simple Vertex Sh... | 0 | 0 | 0 | 0 | 1 | 0 |
This started suddenly today morning.
Original lines were this
float angle = (x+90)*(M_PI/180.0);
float xx = cosf(angle);
float yy = sinf(angle);
After putting a breakpoint and hovering cursor.. I get the correct answer for yy as 1. but xx is NOT zero.
I tried with cosf(M_PI_2); still no luck.. it was working fine till... | 0 | 0 | 0 | 0 | 1 | 0 |
The negative implication of this is noted in the man page:
NOTES
Trying to take the absolute value of the most negative integer is
not
defined.
What's the reasoning behind this and what's the best recourse for a person who would like to avoid undefined behavior? Do I have to resort to something ... | 0 | 0 | 0 | 0 | 1 | 0 |
I just watched a Google tech talk video covering "Polyworld" (found here) and they talk about breeding two neural networks together to form offspring. My question is, how would one go about combining two neural networks? They seem so different that any attempt to combine them would simply form a third, totally unrela... | 0 | 1 | 0 | 0 | 0 | 0 |
Okay, so we've got this event. Awesome, right?
We've also got a timer with a fixed maximum duration, like one of those rotary kitchen timers. Not exactly awesome, but definitely handy.
When the timer goes off, the event occurs, and the timer is reset to some random value between zero and the maximum duration (every val... | 0 | 0 | 0 | 0 | 1 | 0 |
How to find the minimum perpendicular distance of point from a line in 3D plane?
Please give me the logic and I will try to code on myself.
Please let me know how to do it in terms of x,y,z that is in terms of coordinate systems.
I am finding it a bit difficult to find the right solution which will be easy from a codin... | 0 | 0 | 0 | 0 | 1 | 0 |
A-B-C-D are 4 points. We define r = length(B-C), angle, ang1 = (A-B-C) and angle ang2 = (B-C-D) and the torsion angle tors1 = (A-B-C-D). What I really need to do is to find the coordinates of C and D provided that I have the new values of r, ang1, ang2 and tors1.
The thing is that the points A and B are rigidly connect... | 0 | 0 | 0 | 0 | 1 | 0 |
It seems that there is a strong movement for the convergence of mathematics and computer programming languages, this is notably evidenced by the influence of the lambda calculus on modern languages.
Most of the time I do not think with mathematics, I think with logic. It seems to me that many of the phenomenon that can... | 0 | 0 | 0 | 0 | 1 | 0 |
I want to project a grid on the xz-plane like shown here:
To do that, I created a vertex grid with x and z range [-1|1]. In the shader I multiply the xz screen coordinate of a vertex with the inverse of the View-Projection matrix. Then I want to adjust the height, depending on the new world xz coordinates and finally ... | 0 | 0 | 0 | 0 | 1 | 0 |
Let's say I have two points in 3D space (a and b) and a fixed axis/unit vector called n.
I want to create a rotation matrix that minimizes the euclidan distance between point a (unrotated) and the rotated point b.
E.g:
Q := matrix_from_axis_and_angle (n, alpha);
find the unknown alpha that minimizes sqrt(|a - b*Q|... | 0 | 0 | 0 | 0 | 1 | 0 |
Anyone who's tried to study mathematics using online resources will have come across these Java applets that demonstrate a particular mathematical idea. Examples:
http://www.math.ucla.edu/~tao/java/Mobius.html
http://www.mathcs.org/java/programs/FFT/index.html
I love the idea of this interactive approach because I be... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a simple question:
given p points (non-collinear) in R^p i find the hyperplane passing by these points (to help clarify i type everything in R):
p<-2
x<-matrix(rnorm(p^2),p,p)
b<-solve(crossprod(cbind(1,x[,-2])))%*%crossprod(cbind(1,x[,-2]),x[,2])
then, given a p+1^th points not collinear with first p points, ... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm considering using a neural network to power my enemies in a space shooter game i'm building and i'm wondering; how do you train neural networks when there is no one definitive good set of outputs for the network?
| 0 | 1 | 0 | 0 | 0 | 0 |
The following problem has been puzzling me for a couple of days (nb: this is not homework).
There exists two geometric sequences that sum to 9. The value of their second term (t2) is 2.
Find the common ratio (r)
Find the first element (t1) of each
The answers to (1) are 2/3 and 1/3 and the answers to (2) are 3 and 6... | 0 | 0 | 0 | 0 | 1 | 0 |
typedef struct Complex{
double real;
int img;
} Complex;
I've seen people use it as a type like:
Complex sqrt( double x) {
}
how do 'real' and 'img' play a role in this type of function? Thanks
| 0 | 0 | 0 | 0 | 1 | 0 |
Is there a rule of thumb (or set of examples) to determine when to use genetic algorithms as opposed to neural networks (and vice-versa) to solve a problem?
I know there are cases in which you can have both methods mixed, but I am looking for a high-level comparison between the two methods.
| 0 | 1 | 0 | 1 | 0 | 0 |
I've got some C# code that I'm converting to Objective-C. In C# I would call Math.Log(). I'm slowly learning that some people stick to C functions/types and only use NSNumber etc when they need to interop with Cocoa.
Is there an equivalent for ObjC/Cocoa, or do I need to drop into C to do this? I need my code to be as ... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm working with graphing accelerometer data here, and I'm trying to correct for gravity. To do this, I get the acceleration vector in spherical coordinates, decrease the radius by 1g, and convert back to cartesian. This method is called on a timer every 0.03 seconds:
//poll accleration
ThreeAxisAcceleration current = ... | 0 | 0 | 0 | 0 | 1 | 0 |
I created a heuristic (an ANN, but that's not important) to estimate the probabilities of an event (the results of sports games, but that's not important either). Given some inputs, this heuristics tell me what are the probabilities of the event. Something like : Given theses inputs, team B as 65% chances to win.
I hav... | 0 | 0 | 0 | 1 | 0 | 0 |
I'm trying to come up with an elegant way to handle some generated polynomials. Here's the situation we'll focus on (exclusively) for this question:
order is a parameter in generating an nth order polynomial, where n:=order + 1.
i is an integer parameter in the range 0..n
The polynomial has zeros at x_j, where j = 1..... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm thinking of writing an app to classify movies in an HTPC based on what the family members like.
I don't know statistics or AI, but the stuff here looks very juicy. I wouldn't know where to start do.
Here's what I want to accomplish:
Compose a set of samples from each users likes, rating each sample attribute separ... | 0 | 0 | 0 | 1 | 0 | 0 |
I'm trying to use WolframAlpha to solve for a variable.
I have
u(k, r) = (900-3k)r^(k-1)
and
s(n, r) = sum u(k, r), k=1 to n
and I want to solve for r with
s(5000, r) = -600000000000
I've tried various incantations, but can't seem to get it working. I can't even get s defined to evaluate it.
If you care, it is to so... | 0 | 0 | 0 | 0 | 1 | 0 |
How to implement voice recognition in .NET?
I've got a bunch of .mp3s with computer generated voice of relatively high quality. In each .mp3 the voice says some random text and then a sequence of 6-7 digits in English. I'd like to extract those digits as text.
Is it possible to implement such a thing in .NET?
| 0 | 1 | 0 | 0 | 0 | 0 |
I almost have this working however the script is rounding my numbers while I wish to keep both decimals places for a full price instead of being automatically rounded up. My sandbox for this script is here:
http://www.zacharydesigns.com/sandbox/calculatorJS2.html
and here is the code:
<script type="text/javascrip... | 0 | 0 | 0 | 0 | 1 | 0 |
Is there a good way to do a multithreaded A* search? Single threaded is fairly easy, as given in (for example) Artificial Intelligence: A Modern Approach, but I have not come across a good multithreaded version.
Assume a sane language like Java or C# or Lisp where we have thread pools and work blocks, and of course gar... | 0 | 1 | 0 | 0 | 0 | 0 |
For my GAE app I need to do some natural language processing to extract the subject and object from an input sentence.
Apparently NLTK can't be installed (easily) on GAE so I am looking for another solution.
I noticed GAE comes with Antlr3 but from browsing their documentation it solves a different kind of grammar pro... | 0 | 1 | 0 | 0 | 0 | 0 |
Is it possible without using exponentiation to have a set of numbers that when added together, always give unique sum?
I know it can be done with exponentiation (see first answer): The right way to manage user privileges (user hierarchy)
But I'm wondering if it's possible without exponentiation.
| 0 | 0 | 0 | 0 | 1 | 0 |
Im trying to implement NLP in my project,
I need to Tag the words as Person,Location ,Organix=sation etc..If any body knows the logic please let me know..
Regards,
Stack
| 0 | 1 | 0 | 0 | 0 | 0 |
I have around 100 megabytes of text, without any markup, divided to approximately 10,000 entries. I would like to automatically generate a 'tag' list. The problem is that there are word groups (i.e. phrases) that only make sense when they are grouped together.
If I just count the words, I get a large number of really c... | 0 | 1 | 0 | 0 | 0 | 0 |
I have two variables:
$qty = 7;
$_POST['qty'] = 6;
var_dump($qty, $_POST['qty']); // both vars are integers
$_SESSION['qty'] = $qty + $_POST['qty'];
echo '='.$_SESSION['qty'];
This returns:
int(7) int(6) =1
(int)$qty, (int)$_POST['qty'] doesn't solve the problem.
What am I doing wrong?
Update:
... intval($qty) + in... | 0 | 0 | 0 | 0 | 1 | 0 |
Can I rely on
sqrt((float)a)*sqrt((float)a)==a
or
(int)sqrt((float)a)*(int)sqrt((float)a)==a
to check whether a number is a perfect square? Why or why not?
int a is the number to be judged. I'm using Visual Studio 2005.
Edit: Thanks for all these rapid answers. I see that I can't rely on float type comparison. (I... | 0 | 0 | 0 | 0 | 1 | 0 |
Given a 4x4 matrix, what formula could i apply to each (x,y) cell to yield an (x,y) if the matrix was rotated 90 degrees to the right? I tried iterating over each cell but different cells gave different formulas.
Given the following matrix of values.
0| | | | |
1| | | | |
2| | | | |
3| | | | |
... | 0 | 0 | 0 | 0 | 1 | 0 |
Has anyone used the Intel Math Kernel library http://software.intel.com/en-us/intel-mkl/
I am thinking of using this for Random Number generation from a C# application as we need extreme performance (1.6 trillion random numbers per day).
Also any advice on minimising the overhead of consuming functions from this c++ co... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm generating some statistics for some English-language text and I would like to skip uninteresting words such as "a" and "the".
Where can I find some lists of these uninteresting words?
Is a list of these words the same as a list of the most frequently used words in English?
update: these are apparently called "sto... | 0 | 1 | 0 | 0 | 0 | 0 |
We have a list of x,y pairs. Every pair represents a point on a 2D space. I want to find the closest point from this list, to a specific point xq,yq. What is the best performance-critical algorithm for this problem? Lisp of points is not going to change; which means I do not need to perform insertion and deletion. I wa... | 0 | 0 | 0 | 1 | 0 | 0 |
What would be the best way to do the following.
Enter a very long number, lets say 500,000 digits long without it going into scientific notation; and then am able to do math with it, like +2 etc.?
Thank you in advance.
EDIT: It is a 500,000 digit, positive integer.
| 0 | 0 | 0 | 0 | 1 | 0 |
This is really weird, and I cannot see why this is happening. In the foreach cycle, I am iterating through a class A collection, and for each class, I call the Count() method, where r1 and r2 numbers are generated from range [-1,1]. The problem is that Random.Next returns the same "random" numbers for each instance. W... | 0 | 0 | 0 | 0 | 1 | 0 |
If you're optimizing for an architecture on which branching is expensive (say the PS3's cell processor), it can be important to be able to determine whether or not you can express a given algorithm without using branches or at least using fewer branches. One pattern that I see a lot in unoptimized code is a bunch of i... | 0 | 0 | 0 | 0 | 1 | 0 |
If I have a set of tiles (squares) which can be any number and they are to fill a container (rectangle) of an unknown size how do I work out the maximum size of the tiles without having any of them overlap.
So if I have 2 tiles and the rectangle is 100 * 100 then the max tile size is 50 * 50. This would also be the ma... | 0 | 0 | 0 | 0 | 1 | 0 |
I want to order a result by fieldx * fieldy, for example:
Row 1:
fieldx = 10
fieldy = 10
Total: 100
Row 2:
fieldx = 11
fieldy = 5
Total: 55
Row 1 has to appear first. Couldn't find anything about it. It's for a codeIgniter project, so if there is a solution with that I'm very happy.
Thanks!
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm running a contest on a website and I have 3215 entrants who are eligible for 5x Sony PSPs.
I believe the formula to count the odds is totalEntrants - prizes / prizes:
(3215-5)/5 = 642 so that's an odds of 642 to 1 of winning - is that right? ( I suck at math )
And in my table which contains 3215 rows in the databas... | 0 | 0 | 0 | 0 | 1 | 0 |
I have an I2C device that wants two inputs: a denominator and a numerator. Both are written to separate addresses, so no actual calculation (numerator/denominator) is done. The problem with this is that a divide by zero could occur on the I2C device, so a divide by zero error needs to be checked for. Ideally, exactly t... | 0 | 0 | 0 | 0 | 1 | 0 |
If I got a polynomial curve, and I want to find all monotonic curve segments and corresponding intervals by programming.
What's the best way to do this...
I want to avoid solving equation like f'(x) = 0;
Using some nice numerical ways to do this,like bi-section, is preferred.
f'(x) expression is available.
Thanks.
Ad... | 0 | 0 | 0 | 0 | 1 | 0 |
I need to represent calculator key presses by the text for the keys to press surrounded by a box. I tried to get away with just the bare key presses (no box) but I got marked down for it because it would appear my assessor is a bit of a pedant.
Anyway, a bit of research turned up the likes of \boxit and \fbox.
I gave t... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm looking to extract names and places from very short bursts of text example
"cardinals vs jays in toronto"
" Daniel Nestor and Nenad Zimonjic play Jonas Bjorkman w/ Kevin Ullyett, paris time to be announced"
"jenson button - pole position, brawn-mercedes - monaco".
This data is currently in a MySQL database, and... | 0 | 1 | 0 | 0 | 0 | 0 |
I am looking to create a custom math library for the project I am working on. The project is written in C#, and I am slightly concerned whether C# will be fast enough. The library will have a number of custom math formulas and equasions to be applied to very large data sets. Simulations and matrix operations will be do... | 0 | 0 | 0 | 0 | 1 | 0 |
how can I change with CSS (-moz-transform) a div that should look like this:
| 0 | 0 | 0 | 0 | 1 | 0 |
I wrote a tool for polar functions. It lists values from an input range like that:
0 Grad: (0 RAD|1 RES)
20 Grad: (0.349065850398866 RAD|1.3639702342662 RES)
40 Grad: (0.698131700797732 RAD|1.83909963117728 RES)
60 Grad: (1.0471975511966 RAD|2.73205080756888 RES)
80 Grad: (1.39626340159546 RAD|6.67128181961771... | 0 | 0 | 0 | 0 | 1 | 0 |
I'd like to create a function that calculates the distance between two pairs of lat/longs using the pythag theorem instead of the haversine great-circle formula. Since this will be over relative short distances (3km), I think this version that assumes a flat earth should be OK. How can I do this? I asked the internet a... | 0 | 0 | 0 | 0 | 1 | 0 |
I am working with microtime() to time some scripts, but all the scripts have really quick times, eg 2.1934509277344E-5
how can i get php to display that correctly without e-5?
(which i assume is 0.000021934509277344? long time since i did maths...)
| 0 | 0 | 0 | 0 | 1 | 0 |
I've the following players, each value corresponds to a result in percentage of right answers in a given game.
$players = array
(
'A' => array(0, 0, 0, 0),
'B' => array(50, 50, 0, 0),
'C' => array(50, 50, 50, 50),
'D' => array(75, 90, 100, 25),
'E' => array(50, 50, 50, 50),
'F' => array(100, 100... | 0 | 0 | 0 | 0 | 1 | 0 |
Let's say I have a MySQL table that is something like this:
software table:
id int
name text
votes int
rating int
Where votes would be the number of times someone has voted for that item and rating would be the average of those votes.
Example data:
id: 0
name: FooBar!
votes: 5
rating: 3
Now another user comes along a... | 0 | 0 | 0 | 0 | 1 | 0 |
I'd like to use correlation clustering and I figure R is a good place to start.
I can present the data to R as a set of large, sparse vectors or as a table with a pre-computed dissimilarity matrix.
My questions are:
are there existing R functions to turn this into a hierarchical cluster with agnes that uses correlatio... | 0 | 1 | 0 | 0 | 0 | 0 |
Summary:
I'm trying to do classification of some images depending on the angles between body parts.
I assume that human body consists of 10 parts(as rectangles) and find the center of each part and calculate the angle of each part by reference to torso.
And I have three action categories:Handwave-Walking-Running.
My ... | 0 | 0 | 0 | 1 | 0 | 0 |
In decimal (base 10), 1/3 can only be approximated to 0.33333 repeating.
What number is the equivalent in binary that can only be represented as an approximation?
| 0 | 0 | 0 | 0 | 1 | 0 |
Possible Duplicates:
Strange problem comparing floats in objective-C
Is JavaScript’s math broken?
1.265 * 10000 = 126499.99999999999 ?????
After watching this I discovered that in JavaScript:
0.1 + 0.2 === 0.3
evaluates to false.
Is there a way to work around this?
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm looking for a practical application to use a genetic algorithm for. Some things that have thought of are:
Website interface optimization
Vehicle optimization with a physics simulator
Genetic programming
Automatic test case generation
But none have really popped out at me. So if you had some free time (a few month... | 0 | 0 | 0 | 1 | 0 | 0 |
I want to use a GA to determine the optimal path from A to B, satisfying certain conditions (length, number of turns, etc.)
An example of a path is:
Up 4, Left 8, Down 3, Right 3, Down 1, Left 10, Up 4, Left 1, Up 3
The problem is, I don't really know a good way to represent information such as this in a good way for u... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm facing tho following problem:
let's say u is a social network user and as such has a list of friends, F(u). a partition is a function F->G, where G is a set of groups such as High-school, university, work, etc'.
I need to come up with algorithm to partite F:
the input is F and also F(f) for every f in F (the list ... | 0 | 0 | 0 | 1 | 0 | 0 |
In this Wikipedia article about SVM there are a number of links to different implementations of MATLAB toolboxes for Support Vector Machines. Could anyone suggest which of these is best in terms of speed, ease of use, etc.?
| 0 | 0 | 0 | 1 | 0 | 0 |
Quaternions are good for interpolate rotations between them. so far so good.
If I have a networking game, will it suffice to transfer the rotation as vector3f or should I use a quaternion?
To make the game smoother I may have to interpolate between the last sent rotation and the current one.
But can I interpolate rotat... | 0 | 0 | 0 | 0 | 1 | 0 |
The .NET framework's Math functions mostly operate on double precision floats, there are no single precision (float) overloads. When working with single precision data in a high performance scenario this results in unnecessary casting and also calculating functions with more precision than is required, thus performance... | 0 | 0 | 0 | 0 | 1 | 0 |
I have been trying to grasp the basics of Support Vector Machines, and downloaded and read many online articles. But still am not able to grasp it.
I would like to know, if there are some
nice tutorial
sample code which can be used for understanding
or something, that you can think of, and that will enable me to lear... | 0 | 0 | 0 | 1 | 0 | 0 |
How is the derivative of a f(x) typically calculated programmatically to ensure maximum accuracy?
I am implementing the Newton-Raphson method, and it requires taking of the derivative of a function.
| 0 | 0 | 0 | 0 | 1 | 0 |
According to here, arithmetic-shift will bit-shift left and right. The right shift preserves the sign. Is there any unsigned right-shift operator, which fills the vacated bits with zero instead of the sign bit?
| 0 | 0 | 0 | 0 | 1 | 0 |
I am using their default POS tagging and default tokenization..and it seems sufficient. I'd like their default chunker too.
I am reading the NLTK toolkit book, but it does not seem like they have a default chunker?
| 0 | 1 | 0 | 0 | 0 | 0 |
From a book of computer simulation, I got this two equation.
The first is to calculate correlogram, the second is how to use correlogram to estimate variance.
The common approach to estimate variance of observation is often not incorrect in computer simulation because observations are often related.
My question is, t... | 0 | 0 | 0 | 0 | 1 | 0 |
I have to include math symbols in my asp.net
so whatever the symbols it may be sigma , integral , pie etc..or any
how to write or display the Symbols in asp.net it should be UI so when the user click the
particular Symbols it will display in the textbox or any editor control..
If anyone have idea let me know...?
t... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to cluster some images depending on the angles between body parts.
The features extracted from each image are:
angle1 : torso - torso
angle2 : torso - upper left arm
..
angle10: torso - lower right foot
Therefore the input data is a matrix of size 1057x10, where 1057 stands for the number of images, and 10 ... | 0 | 0 | 0 | 1 | 0 | 0 |
what are some of the things i need to consider when designing this object
this is all i can think of
int nominator
int denominator
int sign
this object can be used in a math operation
| 0 | 0 | 0 | 0 | 1 | 0 |
I've written the following:
var pages=["[www.facebook.com] Facebook is cool. ","[www.bbc.co.uk] British broadcasting corporation. "];
function findScoreC2(s){
var scores=[];
var percentageScores=[];
var contentsArray=[];
s=s.toLowerCase();
for(i=0;i<pages.length; i++){
contentsArray=pages[i].substring(p... | 0 | 0 | 0 | 0 | 1 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.