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 |
|---|---|---|---|---|---|---|
Hopefully the last NN question you'll get from me this weekend, but here goes :)
Is there a way to handle an input that you "don't always know"... so it doesn't affect the weightings somehow?
Soo... if I ask someone if they are male or female and they would not like to answer, is there a way to disregard this input? Pe... | 0 | 0 | 0 | 1 | 0 | 0 |
If a game map is partitioned into subgraphs, how to minimize edges between subgraphs?
I have a problem, Im trying to make A* searches through a grid based game like pacman or sokoban, but i need to find "enclosures". What do i mean by enclosures? subgraphs with as few cut edges as possible given a maximum size and mini... | 0 | 1 | 0 | 0 | 0 | 0 |
I have a text file containing posts in English/Italian. I would like to read the posts into a data matrix so that each row represents a post and each column a word. The cells in the matrix are the counts of how many times each word appears in the post. The dictionary should consist of all the words in the whole file or... | 0 | 1 | 0 | 0 | 0 | 0 |
I have this loop that runs in O(end - start) and I would like to replace it with something O(1).
If "width" wouldn't be decreasing, it would be pretty simple.
for (int i = start; i <= end; i++, width--)
if (i % 3 > 0) // 1 or 2, but not 0
z += width;
start, end and width have positive values
| 0 | 0 | 0 | 0 | 1 | 0 |
What does the following function perform?
public static double CleanAngle(double angle) {
while (angle < 0)
angle += 2 * System.Math.PI;
while (angle > 2 * System.Math.PI)
angle -= 2 * System.Math.PI;
return angle;
}
This is how it is used with ATan2. I believ... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm using CML to manage the 3D math in an OpenGL-based interface project I'm making for work. I need to know the width of the viewing frustum at a given distance from the eye point, which is kept as a part of a 4x4 matrix that represents the camera. My goal is to position gui objects along the apparent edge of the view... | 0 | 0 | 0 | 0 | 1 | 0 |
i'm working on a project and i have a subset of user's key-stroke time data.This means that the user makes n attempts and i will use these recorded attempt time data in various kinds of classification algorithms for future user attempts to verify that the login process is done by the user or some another person. (Simpl... | 0 | 0 | 0 | 1 | 0 | 0 |
I'm trying to design an implementation of Vector Quantization as a c++ template class that can handle different types and dimensions of vectors (e.g. 16 dimension vectors of bytes, or 4d vectors of doubles, etc).
I've been reading up on the algorithms, and I understand most of it:
here and here
I want to implement the ... | 0 | 0 | 0 | 0 | 1 | 0 |
Say I have a base form of a word and a tag from the Penn Treebank Tag Set. How can I get the conjugated form? For example for "do" and "VBN" how can I get "done"?
I thinks this task is already implemented in some nlp library, so I'd rather not invent the bicycle. Does something like that exist?
| 0 | 1 | 0 | 0 | 0 | 0 |
I decided to learn concurrency and wanted to find out in how many ways instructions from two different processes could overlap. The code for both processes is just a 10 iteration loop with 3 instructions performed in each iteration. I figured out the problem consisted of leaving X instructions fixed at a point and then... | 0 | 0 | 0 | 0 | 1 | 0 |
I have an interesting problem here I've been trying to solve for the last little while:
I have 3 circles on a 2D xy plane, each with the same known radius. I know the coordinates of each of the three centers (they are arbitrary and can be anywhere).
What is the largest triangle that can be drawn such that each vertex ... | 0 | 0 | 0 | 0 | 1 | 0 |
In a follow-up to this answer I want to ask if any of you know any good (and more importantly easy to understand) tutorials and / or examples of data mining with the Weka toolkit.
I've been very interested in Data Mining ever since I've first heard of it and the things it can do, I've also have some experiments I'd lik... | 0 | 0 | 0 | 1 | 0 | 0 |
I want to do a riddle AI chatbot for my AI class.
So i figgured the input to the chatbot would be :
Something like :
"It is blue, and it is up, but it is not the ceiling"
Translation :
<Object X>
<blue>
<up>
<!ceiling>
</Object X>
(Answer : sky?)
So Input is a set of characteristics (existing \ not exis... | 0 | 1 | 0 | 0 | 0 | 0 |
When using the usual formulas to calculate intersection between two 2D segments, ie here, if you round the result to an integer, you get non-symmetric results.
That is, sometimes, due to rounding errors, I get that intersection(A,B)!=intersection(B,A).
The best solution is to keep working with floats, and compare the ... | 0 | 0 | 0 | 0 | 1 | 0 |
What is the most efficient way to solve system of equations involving the digamma function?
I have a vector v and I want to solve for a vector w such that for all i:
digamma(sum(w)) - digamma(w_i) = v_i
and
w_i > 0
I found the gsl function gsl_sf_psi, which is the digamma function (calculated using some kind of series.... | 0 | 0 | 0 | 0 | 1 | 0 |
In Australia we have to advertise products with tax already added, so rather than say a product is $10 + $1 GST = $11, we normally work backwards and say "ok, total is $10, how much of that is GST ?"
For example, for a $10 total, you do 10 * (1 /11) = 0.91, which is the tax component of the $10 total. My problem is I n... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm currently involved in a project where I have very large image volumes. This volumes have to processed very fast (adding, subtracting, thresholding, and so on). Additionally most of the volume are so large that they event don't fit into the memory of the system.
For that reason I have created an abstract volume clas... | 0 | 0 | 0 | 0 | 1 | 0 |
I have very little programming knowledge; only a fair bit in Visual Basic.
How do I take a value from a text field, then do some simple math such as divide the value by two, then display it back to the user in the same field?
In Visual Basic you could just do txtBoxOne.text = txtBoxOne.text / 2
I understand this questi... | 0 | 0 | 0 | 0 | 1 | 0 |
Given curves of type Circle and Circular-Arc in 3D space, what is a good way to compute accurate bounding boxes (world axis aligned)?
Edit: found solution for circles, still need help with Arcs.
C# snippet for solving BoundingBoxes for Circles:
public static BoundingBox CircleBBox(Circle circle)
{
Point3d O = circle... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm looking for a Java library to help parse user entered text that represents an 'appointment' for a calendar application. For instance:
Lunch with Mike at 11:30 on Tuesday
or
5pm Happy hour on Friday
I've found some promising leads like https://github.com/samtingleff/jchronic and http://www.datejs.com/ which can pa... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm working on a C# program that deals with Oracle Spatial geometry. When circle data is stored in a geometry field only three non-collinear points are stored to represent the circle. The problem is that I need to use this data on a Google Maps web page and need the center point and radius of the circle (since my circl... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm in a strange situation where I have a value of 0.5 and I want to convert the values from 0.5 to 1 to be a percentage and from 0.5 to 0 to be a negative percentage.
As it says in the title 0.4 should be -20%, 0.3 should be -40% and 0.1 should be -80%.
I'm sure this is a simple problem, but my mind is just refusing t... | 0 | 0 | 0 | 0 | 1 | 0 |
In my graduate class on compiler construction we've been introduced to the concept of a lattice. Three lectures have been devoted to lattices and so far it seems like an interesting tangent, but the dilemma is that it doesn't really help explain how a compiler uses a lattice to solve a concrete problem.
We have alread... | 0 | 0 | 0 | 0 | 1 | 0 |
I want to create an object, let's say a Pie.
class Pie
def initialize(name, flavor)
@name = name
@flavor = flavor
end
end
But a Pie can be divided in 8 pieces, a half or just a whole Pie. For the sake of argument, I would like to know how I could give each Pie object a price per 1/8, 1/4 or per whole... | 0 | 0 | 0 | 0 | 1 | 0 |
Knowing that we can use Divide-and-Conquer algorithm to compute large exponents, for example 2 exp 100 = 2 exp(50) * 2 exp(50), which is quite more efficient, is this method efficient using roots? For example 2 exp (1/100) = (2 exp(1/50)) exp(1/50)?
In other words, I'm wondering if (n exp(1/x)) is more efficient to (n ... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a decimal number (let's call it goal) and an array of other decimal numbers (let's call the array elements) and I need to find all the combinations of numbers from elements which sum to goal.
I have a preference for a solution in C# (.Net 2.0) but may the best algorithm win irrespective.
Your method signature mi... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to determine the function for determining the number of unordered combinations with non-unique choices.
Given:
n = number of unique symbols to select from
r = number of choices
Example... for n=3, r=3, the result would be: (edit: added missing values pointed out by Dav)
000
001
002
011
012
022
111
112
122
... | 0 | 0 | 0 | 0 | 1 | 0 |
Is there any tricky way to implement a set data structure (a collection of unique values) in C? All elements in a set will be of the same type and there is a huge RAM memory.
As I know, for integers it can be done really fast'N'easy using value-indexed arrays. But I'd like to have a very general Set data type. And it ... | 0 | 0 | 0 | 0 | 1 | 0 |
If P( cj | xi ) are already known, where i=1,2,...n; j=1,2,...k;
How do I calculate/estimate:
P( cj | xl , xm , xn ), where j=1,2,...k; l,m,n belongs to http://latex.mathoverflow.net/jsMath/fonts/cmsy10/alpha/120/char32.png {1,2,...n} ?
| 0 | 1 | 0 | 0 | 0 | 0 |
I have a basic question about Bayesian networks.
Let's assume we have an engine, that with
1/3 probability can stop working.
I'll call this variable ENGINE.
If it stops working, then your car
doesn't work. If the engine is
working, then your car will work 99%
of the time. I'll call this one CAR.
Now, if your car is ol... | 0 | 1 | 0 | 0 | 0 | 0 |
We're making this web app in PHP and when working in the reports we have Excel files to compare our results to make sure our coding is doing the right operations.
Now we're running into some differences due floating point arithmetics. We're doing the same divisions and multiplications and running into slightly differen... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to implement thinking-sphinx across multiple 'sites' hosted under a single rails application. I'm working with the developer of thinking-sphinx to sort through the finer details and am making good progress, but I need help with a maths problem:
Usually the formula for making a unique ID in a thinking-sphinx ... | 0 | 0 | 0 | 0 | 1 | 0 |
I am parsing binary files and have to implement a CRC algorithm to ensure the file is not corrupted. Problem is that I can't seem to get the binary math working when using larger numbers.
The example I'm trying to get working:
BigInteger G = new BigInteger("11001", 2);
BigInteger M = new BigInteger("1110010000", 2);
B... | 0 | 0 | 0 | 0 | 1 | 0 |
Does Actionscript have a function that would tell me what number the input is a square root of. For example:
4 //output 2, because 4 is the square root of 2
16 //output 4, because 16 is the square root of 4
| 0 | 0 | 0 | 0 | 1 | 0 |
I need an formula for determining a debt payoff plan where the following are known: number of payments, amount per payment, and principal and need to figure out what the interest rate would be from that. I am re-factoring existing code and the current method uses the following (compounded = 12;interest rate starts at .... | 0 | 0 | 0 | 0 | 1 | 0 |
I wrote a program in java that rolls a die and records the total number of times each value 1-6 is rolled. I rolled 6 Million times. Here's the distribution:
#of 0's: 0
#of 1's: 1000068
#of 2's: 999375
#of 3's: 999525
#of 4's: 1001486
#of 5's: 1000059
#of 6's: 999487
(0 wasn't an option.)
Is this distribution consis... | 0 | 0 | 0 | 0 | 1 | 0 |
Does anybody have any idea about any recent work being done on optical character recognition for Indian scripts using modern Machine Learning techniques ? I know of some research being done at ISI, calcutta, but nothing new has come up in the last 3-4 years to the best of my knowledge, and OCR for Devanagari is sadly l... | 0 | 0 | 0 | 1 | 0 | 0 |
I have a series of text items- raw HTML from a MySQL database. I want to find the most common phrases in these entries (not the single most common phrase, and ideally, not enforcing word-for-word matching).
My example is any review on Yelp.com, that shows 3 snippets from hundreds of reviews of a given restaurant, in t... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm writing a custom dice rolling parser (snicker if you must) in python. Basically, I want to use standard math evaluation but add the 'd' operator:
#xdy
sum = 0
for each in range(x):
sum += randInt(1, y)
return sum
So that, for example, 1d6+2d6+2d6-72+4d100 = (5)+(1+1)+(6+2)-72+(5+39+38+59) = 84
I was using rege... | 0 | 0 | 0 | 0 | 1 | 0 |
I am trying to embed Maths Symbols and Equations in Ajax Editor.
or provide some solution to implement maths symbols and equations in my application using rich textbox or some controls/plugins.
Thank you.
| 0 | 0 | 0 | 0 | 1 | 0 |
I am using the following code to work out an inc and ext VAT price:
$('#totalexvat').text(totalprice);
var vat = totalprice / 100 * 17.5;
vat = roundNumber(vat,2);
$('#totalincvat').text(totalprice-vat);
Sometimes I get .3 or .9 instead of what I would like to be .30 or .90 because it's money, is there a way to do thi... | 0 | 0 | 0 | 0 | 1 | 0 |
For given integers N and K (1 <= N, K <= 2000000000) you have to find the number of digits of N^K.
Is there any formula or something ? Because I tried solving it by simply powering N**K but it's not working for large values and the program simply freezes because of the calculations. I am looking for some fast way maybe... | 0 | 0 | 0 | 0 | 1 | 0 |
In our software we have a camera based on mouse movement, and a quarternion at its heart.
We want to fire projectiles from this position, which we can do, however we want to use the camera to aim. The projectile takes a vector which it will add to its position each game frame.
How do we acquire such a vector from a giv... | 0 | 0 | 0 | 0 | 1 | 0 |
Today I found the following:
#include <stdio.h>
int main(){
char x = 255;
int z = ((int)x)*2;
printf("%d
", z); //prints -2
return 0;
}
So basically I'm getting an overflow because the size limit is determined by the operands on the right side of the = sign??
Why doesn't casting it to int before multiplying work?
... | 0 | 0 | 0 | 0 | 1 | 0 |
As all developers do, we constantly deal with some kind of identifiers as part of our daily work. Most of the time, it's about bugs or support tickets. Our software, upon detecting a bug, creates a package that has a name formatted from a timestamp and a version number, which is a cheap way of creating reasonably uniqu... | 0 | 1 | 0 | 0 | 0 | 0 |
According to "Introduction to Neural Networks with Java By Jeff Heaton", the input to the Kohonen neural network must be the values between -1 and 1.
It is possible to normalize inputs where the range is known beforehand:
For instance RGB (125, 125, 125) where the range is know as values between 0 and 255:
1. Divide b... | 0 | 0 | 0 | 1 | 0 | 0 |
i have latitude and longitude of particular place and i want to calculate the distance so how can i calculate it?
| 0 | 0 | 0 | 0 | 1 | 0 |
Given the triangle with vertices (a,b,c):
c
/ \
/ \
/ \
a - - - - b
Which is then subdivided into four triangles by halving each of the edges:
c
/ \
/ \
ca / \ bc
_ _ _
/\ ... | 0 | 0 | 0 | 0 | 1 | 0 |
Mathematica has a built-in function ArgMax for functions over infinite domains, based on the standard mathematical definition.
The analog for finite domains is a handy utility function.
Given a function and a list (call it the domain of the function), return the element(s) of the list that maximize the function.
Here's... | 0 | 0 | 0 | 0 | 1 | 0 |
I need to subtract 0.5 from number a and set the answer to number b. My code looks like it would work but I'm not sure what I'm doing wrong. The error I get Is on the subtraction line, the error says incompatible type for argument 1 of 'decimalNumberBySubtracting:'.
Heres my header: (Note: I only showed the numbers bec... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm implementing a new machine learning algorithm in Java that extracts a prototype datastructure from a set of structured datasets (tree-structure). As im developing a generic library for that purpose, i kept my design independent from concrete data-representations like XML.
My problem now is that I need a way to defi... | 0 | 0 | 0 | 1 | 0 | 0 |
Take a commonly used binary hash function - for example, SHA-256. As the name implies, it outputs a 256 bit value.
Let A be the set of all possible 256 bit binary values. A is extremely large, but finite.
Let B be the set of all possible binary values. B is infinite.
Let C be the set of values obtained by running SHA-2... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a weird math calculation here. I hope someone will explain.
$a = 1.85/100;
$b = 1.5/100;
$c = 1.1/100;
$d = 0.4/100;
$e = 0.4/100;
$f = 0.4/100;
$g = 0.4/100;
$h = $a + $b + $c + $d + $e + $f + $g;
echo $h*100 ."<br>";
$i = $h-$a;
$i = $i-$b;
$i = $i-$c;
$i = $i-$d;
$i = $i-$e;
$i = $i-$f;
$i = $i-$g;
echo $... | 0 | 0 | 0 | 0 | 1 | 0 |
I develop a Python-based drawing program, Whyteboard. I have tools that the user can create new shapes on the canvas, such as text/images/rectangles/circles/polygons. I also have a Select tool that allows the users to modify these shapes - for example, moving a shape's position, resizing, or editing polygon's points' p... | 0 | 0 | 0 | 0 | 1 | 0 |
We all hear that math at least helps a little bit with programming. My question though, does English or other natural language skills help with programming? I know it has to help with technical documentation, but what about actual programming? Are certain constructs in a programming language also there in natural langu... | 0 | 1 | 0 | 0 | 0 | 0 |
Challenge
Here is the challenge (of my own invention, though I wouldn't be surprised if it has previously appeared elsewhere on the web).
Write a function that takes a single
argument that is a
string representation of a simple
mathematical expression and evaluates
it as a floating point value. A
"simple exp... | 0 | 0 | 0 | 0 | 1 | 0 |
I have been trying to solve this problem for a while, but couldn't with just integer arithmetic and bitwise operators. However, I think its possible and it should be fairly easy. What am I missing?
The problem: to get an integer value of arbitrary length (this is not relevant to the problem) with it's X least significa... | 0 | 0 | 0 | 0 | 1 | 0 |
Hey all. I'm computing the angle between two vectors, and sometimes Math.Acos() returns NaN when it's input is out of bounds (-1 > input && input > 1) for a cosine. What does that mean, exactly? Would someone be able to explain what's happening? Any help is appreciated!
Here's my method:
public double AngleBetween... | 0 | 0 | 0 | 0 | 1 | 0 |
function(deltaTime) {
x = x * FACTOR; // FACTOR = 0.9
}
This function is called in a game loop. First assume that it's running at a constant 30 FPS, so deltaTime is always 1/30.
Now the game is changed so deltaTime isn't always 1/30 but becomes variable. How can I incorporate deltaTime in the calculation of x to kee... | 0 | 0 | 0 | 0 | 1 | 0 |
as I am learning the Ruby language, I am getting closer to actual programming. I was thinking of creating a simple card game. My question isn't Ruby oriented, but I do know want to learn how to solve this problem with a genuine OOP approach. In my card game, I want to have four players, using a standard deck with 52 c... | 0 | 1 | 0 | 0 | 0 | 0 |
How to prove this:
4n = O(8n)
8n = O(4n)?
So what are the C and n0 values for both cases?
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a whole bunch of percentages stored as XX% (e.g. 12%, 50%, etc..) I need to remove the percentage sign and then multiply the percent against another variable thats just a number (e.g. 1000, 12000) and then output the result. Is there a simple way to strip the percentage sign and then calculate the output with PH... | 0 | 0 | 0 | 0 | 1 | 0 |
I was given a task. Write an algorithm so that, the input of 2 lists of data, will have at least one in common.
So, this is my algorithm: (I write the code in php)
$arrayA = array('5', '6', '1', '2', '7');
$arrayB = array('9', '2', '1', '8', '3');
$arrayC = array();
foreach($arrayA as $val){
if(in_array($val, $arr... | 0 | 0 | 0 | 0 | 1 | 0 |
Is there existing software for discriminative reranking, such as that used by the Charniak NLP parser, Shen, Sarkar, and Och's parser or Shen and Joshi's techniques? I'd like something that I can easily adapt for my own uses, which are similar to parse reranking.
| 0 | 1 | 0 | 1 | 0 | 0 |
What's the best way to do base36 arithmetic in Perl?
To be more specific, I need to be able to do the following:
Operate on positive N-digit numbers in base 36 (e.g. digits are 0-9 A-Z)
N is finite, say 9
Provide basic arithmetic, at the very least the following 3:
Addition (A+B)
Subtraction (A-B)
Whole division, e.g... | 0 | 0 | 0 | 0 | 1 | 0 |
I am writing a game in Python (with pygame) that requires me to generate random but nice-looking "sea" for each new game. After a long search I settled on an algorithm that involves Bezier curves as defined in padlib.py. I now need to figure out when the curves generated by padlib intersect a line segment.
The brute fo... | 0 | 0 | 0 | 0 | 1 | 0 |
So I found some similarities between arrays and set notation while learning about sets and sequences in precalc e.g. set notation: {a | cond } = { a1, a2, a3, a4, ..., an} given that n is the domain (or index) of the array, a subset of Natural numbers (or unsigned integer). Most programming languages would provide simi... | 0 | 0 | 0 | 0 | 1 | 0 |
Please order the function belows by growth rate from fastest to slowest:
n^10
2^n
nlog(n)
10^6
And my answer is:
2^n
n^10
nlog(n)
10^6
Is my answer correct?
| 0 | 0 | 0 | 0 | 1 | 0 |
Mathematically I suppose it's possible that even two random GUIDs generated using the built in method in the .NET framework are identical, but roughly how likely are they to clash if you generate hundreds or thousands?
If you generated one for every copy of Windows in the world, would they clash?
The reason I ask is be... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a value range from 0 to 255.
There is a method that returns an array with a min and max values within this range, i.e: 13, 15, 20, 27, 50 ... 240
where 13 is the min and 240 is the max
I need to scale these values so that 13 becomes 0 and 240 becomes 255 and scale all the other values between them proportionally... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm searching for an algorithm to calculate the average distance between a point and a line segment in 3D. So given two points A(x1, y1, z1) and B(x2, y2, z2) that represent line segment AB, and a third point C(x3, y3, z3), what is the average distance between each point on AB to point C?
I'm also interested in the av... | 0 | 0 | 0 | 0 | 1 | 0 |
For the classic water jugs search problem, even for more than three jugs, which are some admissible functions that can be used for the A* search algorithm?
Edit:
I know about http://www.dave-reed.com/csc550.S02/HW/HW4.html , but that function clearly is not consistent.
| 0 | 1 | 0 | 0 | 0 | 0 |
Do you have some advices or reading how to engineer features for a machine learning task?
Good input features are important even for a neural network. The chosen features will affect the needed number of hidden neurons and the needed number of training examples.
The following is an example problem, but I'm interested i... | 0 | 1 | 0 | 1 | 0 | 0 |
Just wondering if there was a nice (already implemented/documented) algorithm to do the following
boo! http://img697.imageshack.us/img697/7444/sdfhbsf.jpg
Given any shape (without crossing edges) and two points inside that shape, compute all the paths between the two points such that all reflections are perfect reflect... | 0 | 0 | 0 | 0 | 1 | 0 |
I am working on a factorisation problem and for small numbers it is working well. I've been able to calculate the factors (getting the answers from Wolfram Alpha) for small numbers, like the one on the Wikipedia page (5959).
Along with the Wikipedia page I have been following this guide. Once again, as my Math knowledg... | 0 | 0 | 0 | 0 | 1 | 0 |
I am just trying to implement multi-precision arithmetic on native MIPS. Assume that
one 64-bit integer is in register $12 and $13 and another is in registers $14 and $15.
The sum is to be placed in registers $10 and $11. The most significant word of the 64-bit integer is found in the even-numbered registers, and the l... | 0 | 0 | 0 | 0 | 1 | 0 |
How can I get the 2 biggers numbers of a matrix row?
If the matrix have a bigger number in other row, it can't be shown.
For example, let's suppose I have the following matrix
int mat[][] ={{1,2,3}{4,5,6}{7,8,9}};
if I search the 2 biggers numbers from the row 0, it should return me the indexes 1 and 2 (values 2 and 3... | 0 | 0 | 0 | 0 | 1 | 0 |
I have code similar to:
if conditionA(x, y, z) then doA()
else if conditionB(x, y, z) then doB()
...
else if conditionZ(x, y, z) then doZ()
else throw ShouldNeverHappenException
I would like to validate two things (using static analysis):
If all conditions conditionA, conditionB, ..., conditionZ are mutually exc... | 0 | 0 | 0 | 0 | 1 | 0 |
For given floating point numbers x and a, I would like to compute r (and n) such that x = a*n + r . In C/C++ this function is called fmod. However I do not see a convenient function in .NET. Math.DivRem is only for integers ...
| 0 | 0 | 0 | 0 | 1 | 0 |
can anyone assist me in finding the proper formula for quad normalization ?
using c++ with opengl.
thank you!
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm working in J2ME, I have my gameloop doing the following:
public void run() {
Graphics g = this.getGraphics();
while (running) {
long diff = System.currentTimeMillis() - lastLoop;
lastLoop = System.currentTimeMillis();
input();
this.level.doLogic();
... | 0 | 0 | 0 | 0 | 1 | 0 |
Named Entity Extraction (extract ppl, cities, organizations)
Content Tagging (extract topic tags by scanning doc)
Structured Data Extraction
Topic Categorization (taxonomy classification by scanning doc....bayesian )
Text extraction (HTML page cleaning)
are there libraries that i can use to do any of the above functio... | 0 | 1 | 0 | 0 | 0 | 0 |
Im working in a screen coordinate space that is different to that of the classical X/Y coordinate space, where my Y direction goes down in the positive instead of up.
Im also trying to figure out how to make a Circle on my screen always face away from the center point of the screen.
If the center point of my screen is ... | 0 | 0 | 0 | 0 | 1 | 0 |
I've been looking at face detection lately, and a lot of the literature states their outputs have a range. How is this possible? I've created my own network and it only seems to be outputting either -1 or 1. Is this because I'm using the Tanh activation function? I want the values to output from, say, 0 to 1 in a ra... | 0 | 0 | 0 | 0 | 1 | 0 |
I have two tables of concern here: users and race_weeks. User has many race_weeks, and race_week belongs to User. Therefore, user_id is a fk in the race_weeks table.
I need to perform some challenging math on fields in the race_weeks table in order to return users with the most all-time points.
Here are the fields ... | 0 | 0 | 0 | 0 | 1 | 0 |
I am looking for an open source library for Linguistic Inquiry and Word Count (LIWC). Something in java or python will be good, though I am open to use other language.
Does anyone know where I can get one ?
Cheers,
| 0 | 1 | 0 | 0 | 0 | 0 |
If you look at the top right you'll see on a radar an enemy unit line of sight.
I was wondering what is the most efficient or easiest way (little code, fairly accurate. doesnt need to be perfect) to detect if something is in your line of sight? I may or may not need to render it (i likely wont).
I dont know the formula... | 0 | 0 | 0 | 0 | 1 | 0 |
For one of my course project I started implementing "Naive Bayesian classifier" in C. My project is to implement a document classifier application (especially Spam) using huge training data.
Now I have problem implementing the algorithm because of the limitations in the C's datatype.
( Algorithm I am using is given he... | 0 | 0 | 0 | 1 | 0 | 0 |
Relating to this question i was wondering if .NET has any libs (or a function) i can use to detect if one point collides with another.
I am not sure what angles i should use but is there some function like this
func(point src, rect target, angle, distanceOfVision, listPointOrRectOfWalls)
Pretty unlikely but i dont kno... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm calculating fixedpoint reciprocals in Q22.10 with Goldschmidt division for use in my software rasterizer on ARM.
This is done by just setting the numerator to 1, i.e the numerator becomes the scalar on the first iteration. To be honest, I'm kind of following the wikipedia algorithm blindly here. The article says th... | 0 | 0 | 0 | 0 | 1 | 0 |
How would I print the multiples of a list of given numbers in a merged, sorted list?
I.e.
take 10 (multiples [4,5])
gives
4,5,8,10,12,15,16,20,24,25
I've got it working for lists of size 2 or 1 but I need a more general solution :)
| 0 | 0 | 0 | 0 | 1 | 0 |
I've got a rather strange problem. For a Distributed Hash Table I need to be able to do some simple math operations on MD5 hashes. These include a sum (numeric sum represented by the hash) and a modulo operation. Now I'm wondering what the best way to implement these operations is.
I'm using hashlib to calculate the ha... | 0 | 0 | 0 | 0 | 1 | 0 |
Let's say there is a sentence:
On March 1, he was born.
Changing it to
He was born on March 1.
doesn't break the sense of the sentence and it is still valid. Shuffling words in any other way would produce weird to invalid sentences. So basically, I'm talking about parts of the sentence, which make the information mo... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm new to this site, so hopefully you guys don't mind helping a nub.
Anyway, I've been asked to write code to find the shortest cost of a graph tour on a particular graph, whose details are read in from file. The graph is shown below:
http://img339.imageshack.us/img339/8907/graphr.jpg
This is for an Artificial Intelli... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm implementing the NTRUEncrypt algorithm, according to an NTRU tutorial, a polynomial f has an inverse g such that f*g=1 mod x, basically the polynomial multiplied by its inverse reduced modulo x gives 1. I get the concept but in an example they provide, a polynomial f = -1 + X + X^2 - X4 + X6 + X9 - X10 which we wil... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to round a number to the next smallest power of another number. I'm not particular on which direction it rounds, but I prefer downwards if possible.
The number x that I'm rounding will satisfy: x > 0, and usually fits within the range 0 < x <= 1. Only rarely will it be above 1.
More generally, my problem is:... | 0 | 0 | 0 | 0 | 1 | 0 |
Hi I am displaying a colour as a hex value in php . Is it possible to vary the shade of colour by subtracting a number from the hex value ? What I want to do it display vivid web safe colour but if selected I want to dull or lighten the colour. I know I can just use two shades of colour but I could hundred of potential... | 0 | 0 | 0 | 0 | 1 | 0 |
Consider the set of non-decreasing surjective (onto) functions from (-inf,inf) to [0,1].
(Typical CDFs satisfy this property.)
In other words, for any real number x, 0 <= f(x) <= 1.
The logistic function is perhaps the most well-known example.
We are now given some constraints in the form of a list of x-values and for ... | 0 | 0 | 0 | 0 | 1 | 0 |
Let's say I have three 32-bit floating point values, a, b, and c, such that (a + b) + c != a + (b + c). Is there a summation algorithm, perhaps similar to Kahan summation, that guarantees that these values can be summed in any order and always arrive at the exact same (fairly accurate) total? I'm looking for the genera... | 0 | 0 | 0 | 0 | 1 | 0 |
[Caveat] This is not directly a programing question, but it is something that comes up so often in language processing that I'm sure it's of some use to the community.
Does anyone have a good list of uninteresting (English) words that have been tested by more then a casual look? This would include all prepositions, con... | 0 | 1 | 0 | 0 | 0 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.