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 |
|---|---|---|---|---|---|---|
How can I set Neural Networks so they accept and output a continuous range of values instead of a discrete ones?
From what I recall from doing a Neural Network class a couple of years ago, the activation function would be a sigmoid, which yields a value between 0 and 1. If I want my neural network to yield a real value... | 0 | 1 | 0 | 0 | 0 | 0 |
As much as I like using GUIDs as the unique identifiers in my system, it is not very user-friendly for fields like an order number where a customer may have to repeat that to a customer service representative.
What's a good algorithm to use to generate order number so that it is:
Unique
Not sequential (purely for opti... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm writing an AI-testing Framework for a competition. Participants submit a Bot class which matches a given Interface. Then all the bots play a turn-based game. On every turn, I want to do the following:
For every bot B:
start a thread that runs at most N cycles and does B.getNextMove()
wait for all threads to ... | 0 | 1 | 0 | 0 | 0 | 0 |
For my university project I am creating a neural network that can classify the likelihood that a credit card transaction is fraudulent or not. I am training with backpropagation. I am writing this in Java. I would like to apply multithreading, because my computer is a quad-core i7. It bugs me to spend hours trainin... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm trying to find out when a quadratic selection algorithm is faster than a linear selection algorithm. Running some experiments I generated two 3D plots that show the algorithm run times as a function of the input array size and the desired order statistic. Using gnuplot to draw the plot I confirmed that there are ca... | 0 | 0 | 0 | 0 | 1 | 0 |
I need to calculate a net mask and subnet addr using broadcast addr and host address from this subnet.
I must use only bitwise operations and not comparing of string representation, sysadmin tools and so on.
I have some formulas for calculating addresses. But I don't know how to use it with my source data.
^ -- is bi... | 0 | 0 | 0 | 0 | 1 | 0 |
I am making a simple AI and I am really new to this realm. What I need is an algorithm to make some sort of decisions based on some parameters; but with a little bit of randomness. What I have been doing so far is to generate a random number and based on the different values I get; take different execution paths. I som... | 0 | 1 | 0 | 0 | 0 | 0 |
For a homework assignment in linear algebra, I have solved the following equation using MATLAB's \ operator (which is the recommended way of doing it):
A = [0.2 0.25; 0.4 0.5; 0.4 0.25];
y = [0.9 1.7 1.2]';
x = A \ y
which produces the following answer:
x =
1.7000
2.0800
For the next part of assignment, I'm suppose... | 0 | 0 | 0 | 0 | 1 | 0 |
Can the Dancing Links implementation of Knuth's Algorithm X be used to solve this CSP? In this game the first and last number are always already in the board and I belive there's only one solution to each well formulated problem.
| 0 | 1 | 0 | 0 | 0 | 0 |
Let's imagine we have an (x,y) plane where a robot can move. Now we define the middle of our world as the goal state, which means that we are going to give a reward of 100 to our robot once it reaches that state.
Now, let's say that there are 4 states(which I will call A,B,C,D) that can lead to the goal state.
The firs... | 0 | 1 | 0 | 0 | 0 | 0 |
I've made a program for my OOP class that does the following:
Defines a class to represent complex numbers.
Uses a constructor to initialize a Complex Number object.
Passes and returns complex number objects from a function.
Tests the complex number class in a driver.
Optionally adds and subtracts complex numbers.
My... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a vector consisting of a point, speed and direction. We will call this vector R. And another vector that only consists of a point and a speed. No direction. We will call this one T.
Now, what I am trying to do is to find the shortest intersection point of these two vectors. Since T has no direction, this is prov... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm in the middle of porting some c++ code to java, and I keep running across instances where whoever wrote it kept doing the following:
double c = (1.0/(a+1.0)*pow(b, a+1.0));
double d = (1./(integral(gamma, dmax)-integral(gamma, dmin)))*(integral(gamma+1, dmax)-integral(gamma+1, dmin));
Instead of:
double c = pow(b,... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm interested in creating poster-sized images that contain repeating patterns, similar to the two (public domain) images below, the Flower of Life and a Penrose tiling:
My questions:
How do people usually create images like these on a computer? I'm hoping the answer isn't, "Open Adobe Illustrator and guess at inters... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm looking to try and write a chess AI. Is there something i can use on the .NET framework (or maybe even a chess program scripted in Lua) that will let me write and test a chess AI without worrying about actually makign a chess game?
| 0 | 1 | 0 | 0 | 0 | 0 |
I've been trying to find an answer to this for months (to be used in a machine learning application), it doesn't seem like it should be a terribly hard problem, but I'm a software engineer, and math was never one of my strengths.
Here is the scenario:
I have a (possibly) unevenly weighted coin and I want to figure out ... | 0 | 0 | 0 | 1 | 0 | 0 |
The problem is to derive a formula for determining number of digits a given decimal number could have in a given base.
For example: The decimal number 100006 can be represented by 17,11,9,8,7,6,8 digits in bases 2,3,4,5,6,7,8 respectively.
Well the formula I derived so far is like this : (log10(num) /log10(base)) + 1... | 0 | 0 | 0 | 0 | 1 | 0 |
This is to extend the question: Tools to help reverse engineer binary file formats
Are there any tools that are publicly available that uses clustering and/or data mining techniques to reverse engineer file formats?
For example, with the tool you would have a collection of files that have the same format and the outpu... | 0 | 1 | 0 | 0 | 0 | 0 |
Ok. So I guess thing would to be envision new york city and beijing highlighted on google earth...
I'm trying to figure out how to map points onto a 3d primitive object (a sphere), get their distance via any direction by the circumference, and their distance by diameter. The points are going to be latitude and longitud... | 0 | 0 | 0 | 0 | 1 | 0 |
How can I z-order the faces of a 3d object just using the 4 vertices of each of its faces? I've tried using a z-buffer where I store the average z value of each face; this works great most of the times, but fails when an object have large and small faces.
I'm building a small 3d-engine in flash, just for the fun of lea... | 0 | 0 | 0 | 0 | 1 | 0 |
If I have a matrix which is a combination of WorldViewProjection and I multiply it by the inverse of the projection does it yield the WorldView matrix or something else? If not then how can I extract the WorldView matrix from a WorldViewProjection matrix?
Thanks for any help :)
| 0 | 0 | 0 | 0 | 1 | 0 |
I have gone through earlier discussions on floating point numbers in SO but that didn't clarified my problem,I knew this floating point issues may be common in every forum but my question in not concerned about Floating point arithmetic or Comparison.I am rather inquisitive about its representation and output with %f. ... | 0 | 0 | 0 | 0 | 1 | 0 |
Im trying to implement a bezier curve and line segment intersection test. The closest thing my searching has turned up is to take the bezier curve (lets limit it to three control points for simplicity) find the mathematical function generating that curve and place it on origo. Then, using the function for the line segm... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a simple, but perplexing problem, with Math.
The following code will take a number from a string (usually contained in a span or div) and subtract the value of 1 from it.
.replace(/(\d+)/g, function(a,n){ return (+n-1); });
This works really well, except when we get below zero. Once we get to -1 we're obviously ... | 0 | 0 | 0 | 0 | 1 | 0 |
I wish to implement a audio visualizer widget (similar to what Winamp has) in WPF. How would I approach this problem?
| 0 | 0 | 0 | 0 | 1 | 0 |
I need an exponential equation with the following parameters:
When x = 0, y = 153.
When x = 500, y = 53.
Y should increase exponentially as X approaches 0 and should decrease exponentially when X approaches 500.
For some reason I can't remember how to do this.
I'm sure once I see the equation (or one similar) I can fig... | 0 | 0 | 0 | 0 | 1 | 0 |
Okay I'm working on a Space sim and as most space sims I need to work out where the opponents ship will be (the 3d position) when my bullet reaches it. How do I calculate this from the velocity that bullets travel at and the velocity of the opponents ship?
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a map of the US, and I've got a lot of pixel coordinates on that map which correspond to places of interest. These are dynamically drawn on the map at runtime according to various settings and statistics.
I now need to switch over to a different map of the US which is differently sized, and the top left corner ... | 0 | 0 | 0 | 0 | 1 | 0 |
I am using the Stanford Natural Language processing toolkit. I've been trying to find spelling errors with Lexicon's isKnown method, but it produces quite a few false positives. So I thought I'd load a second lexicon, and check that too. However, that causes a problem.
private static LexicalizedParser lp = new Lexicali... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm making a software rasterizer for school, and I'm using an unusual rendering method instead of traditional matrix calculations. It's based on a pinhole camera. I have a few points in 3D space, and I convert them to 2D screen coordinates by taking the distance between it and the camera and normalizing it
Vec3 ray_to_... | 0 | 0 | 0 | 0 | 1 | 0 |
Given data values of some real-time physical process (e.g. network traffic) it is to find a name of the function which "at best" matches with the data.
I have a set of functions of type y=f(t) where y and t are real:
funcs = set([cos, tan, exp, log])
and a list of data values:
vals = [59874.141, 192754.791, 342413.3... | 0 | 0 | 0 | 0 | 1 | 0 |
How do you draw the curve representing the shortest distance between 2 points on a flat map of the Earth?
Of course, the line would not be a straight line because the Earth is curved. (For example, the shortest distance between 2 airports is curved.)
EDIT: THanks for all the answers guys - sorry I was slow to choose so... | 0 | 0 | 0 | 0 | 1 | 0 |
A little background: as a way to learn multinode trees in C++, I decided to generate all possible TicTacToe boards and store them in a tree such that the branch beginning at a node are all boards that can follow from that node, and the children of a node are boards that follow in one move. After that, I thought it wou... | 0 | 1 | 0 | 0 | 0 | 0 |
How to generate a code from two numbers, that when you know this code and one of the numbers you can descramble the second number?
For example you have two numbers: 983 and 2303 and you "mix" it into hex-string like this:4b17a190bce4ea32236b98dd. When you know first number and this hex-string you can descramble second ... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm currently reading "Artificial Intelligence: A Modern Approach" (Russell+Norvig) and "Machine Learning" (Mitchell) - and trying to learn basics of AINN.
In order to understand few basic things I have two 'greenhorn' questions:
Q1: In a genetic algorithm given the two parents A and B with the chromosomes 001110 and 1... | 0 | 1 | 0 | 1 | 0 | 0 |
I am writing a program in C. I want to find a solution by minimizing expression
D1+D2+......+Dn
where Di's are distances calculated by distance formula between 2 points. The above expression is in x & y variables
Now I will differentiate this expression and find the solution. My doubt is:
since in the above expression... | 0 | 0 | 0 | 0 | 1 | 0 |
Is there an OSS which can compress a text to a synopsis?
My goal is to build an editor for SciFi novels which can either automatically create a synopsizes for chapters or at least make a suggestion for one.
| 0 | 1 | 0 | 0 | 0 | 0 |
When the user visits the site, I can get their country code. I want to use this to set the default language (which they can later modify if necessary, just a general guess as to what language they might speak based on what country they are in).
Is there a definitive mapping from country codes to language codes that ... | 0 | 1 | 0 | 0 | 0 | 0 |
I have a set of columns of varying widths and I need an algorithm to re-size them for some value y which is greater than the sum of all their widths.
I would like the algorithm to prioritize equalizing the widths. So if I have a value that's absolutely huge the columns will end up with more or less the same width. If t... | 0 | 0 | 0 | 0 | 1 | 0 |
In the same thread as this question, I am giving this another shot and ask SO to help address how I should take care of this problem. I'm writing a bash script which needs to perform the following:
I have a circle in x and y with radius r.
I specify resolution which is the distance between points I'm checking.
I need ... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to determine for the articial neuron shown below the values (0 or 1)
for the inputs i1, i2, and i3 for which it will fire (i0 is the input for the
bias weight and will always be -1).
The weights are
W0 = 1.5
W1 = -1
W2 = 1, and W3 = 2.
Assume the activation function depicted in image below.
Please clarify... | 0 | 1 | 0 | 0 | 0 | 0 |
Can someone give me some pointers on how I should implement the artificial intelligence (human vs. computer gameplay) for a Puyo Puyo game? Is this project even worth pursuing?
The point of the game is to form chains of 4 or more beans of the same color that trigger other chains. The longer your chain is, the more poi... | 0 | 1 | 0 | 0 | 0 | 0 |
Say I got a set of 10 random numbers between 0 and 100.
An operator gives me also a random number between 0 and 100.
Then I got to find the number in the set that is the closest from the number the operator gave me.
example
set = {1,10,34,39,69,89,94,96,98,100}
operator number = 45
return = 39
And how do translate this... | 0 | 0 | 0 | 0 | 1 | 0 |
I am developing a game that calls so many math functions for physics and rendering. "Fast inverse sqrt" used in Quake3 is known to be faster than sqrt() and its background is beautiful.
Do you know any other algorithm that is faster than usual one with acceptable accuracy loss?
| 0 | 0 | 0 | 0 | 1 | 0 |
I am trying to implement a "Look At" behavior for planes moving around a sphere so they always face the camera.
What I figured out so far, I know the normal that the plane should have and I know that its rotation around its local Z axis should always be 0. I thought it was a pretty trivial operation to figure out the m... | 0 | 0 | 0 | 0 | 1 | 0 |
Pretty common situation, I'd wager. You have a blog or news site and you have plenty of articles or blags or whatever you call them, and you want to, at the bottom of each, suggest others that seem to be related.
Let's assume very little metadata about each item. That is, no tags, categories. Treat as one big blob of t... | 0 | 0 | 0 | 1 | 0 | 0 |
mysql_query("insert into mytable (flow,holderid,amount,operator,ip,product,taskid,comment)values('-1','$memberid','$sum+5','$memberid','$ip','Expertise','$taskid','Publish a problem or task') ")or die(mysql_error());
I get an error about
'$sum+5'
MySQL doesn't treat it as an and operation, how to resolve this probl... | 0 | 0 | 0 | 0 | 1 | 0 |
L->|
A -> B ^ |
|__> C -> D-> G->X--| |
K |_> T | |_>Z
|___________|
I hope this small drawing helps convey what I'm trying to do.
I have a list of 7,000 locations, each with an undefined, but small number of doors. Each door is a bridge between both location... | 0 | 0 | 0 | 0 | 1 | 0 |
I am trying to figure out a calculation I can perform in C# to determine the rows per column. Let's say I know I am going to have 3 columns and my record count is 46. I know that I can mod the results to get a remainder, but I would like something more efficient than what I have tried. So I know I will have 16 rows pe... | 0 | 0 | 0 | 0 | 1 | 0 |
I have this operation:
t = (x - (y * (z + w)) - w) / 2;
where:
x = 268;
y = 4;
z = 20;
w = 30;
As far as I know the result will be 49, but I getting 19.
Where is my error? (In using this code on a .Net Compact Framework 2.0 SP2 WinForm app).
Thank you.
| 0 | 0 | 0 | 0 | 1 | 0 |
For example, math logic, graph theory.
Everyone around tells me that math is necessary for programmer. I saw a lot of threads where people say that they used linear algebra and some other math, but no one described concrete cases when they used it.
I know that there are similar threads, but I couldn't see any descripti... | 0 | 0 | 0 | 0 | 1 | 0 |
What would be the solution to the following two equations ?
A1uv + B1u + C1v + D1 = 0
A2uv + B2u + C2v + D2 = 0
u, v in [0, 1]
The solution needs to be blazing fast because it needs to be solved for each pixel, hopefully a direct rather than iterative solution.
This is basically trying to find the inverse of a coons pa... | 0 | 0 | 0 | 0 | 1 | 0 |
Just been looking at a code golf question about generating a sorted list of 100 random integers. What popped into my head, however, was the idea that you could generate instead a list of positive deltas, and just keep adding them to a running total, thus:
deltas: 1 3 2 7 2
ints: 1 4 6 13 15
In fact, you would use ... | 0 | 0 | 0 | 0 | 1 | 0 |
please help to print series as well sum of series like 1*3-3*5+5*7 up to n terms i have used code like this in php
class series {
function ser(){
$i = 0;
$k = 3;
$m = 0;
for($j = 1; $j < 3; $j++) {
if($j % 2 == 0 ) {
$m = $i + ($i * $k);
} els... | 0 | 0 | 0 | 0 | 1 | 0 |
I´ve got a question concerning two sets of points in a 3d space.
I defined a volume by 40 coordinates in one cartesian coordinate system,
in another coordinate system with different (0,0,0) i have s slightly different volume also defined by 40 coordinates. I know the matching pairs of the point sets and I want to measu... | 0 | 0 | 0 | 0 | 1 | 0 |
I have a couple of questions about how to code the backpropagation algorithm of neural networks:
The topology of my networks is an input layer, hidden layer and output layer. Both the hidden layer and output layer have sigmoid functions.
First of all, should I use the bias?
To where should I connect the bias
in my net... | 0 | 1 | 0 | 0 | 0 | 0 |
This question can probably be broken up into multiple questions, but here goes...
In essence, I'd like to allow users to type in what they would like to do and provide a wizard-like interface to ask for information which is missing to complete a requested query. For example, let's say a user types: "What is the weathe... | 0 | 1 | 0 | 0 | 0 | 0 |
Has anyone dealt with re-distributing an application that uses the Numerical Algorithms Group (NAG) Libraries?
It seems like when I build an executable, it won't run unless I have an environment variable set for the license file- i.e. if I gave someone the code they would need a license and associated daemon as well.
... | 0 | 0 | 0 | 0 | 1 | 0 |
How can I tell NLTK to treat the text in a particular language?
Once in a while I write a specialized NLP routine to do POS tagging, tokenizing and etc. on a non-english (but still hindo-European) text domain.
This question seem to address only different corpora, not the change in code/settings:
POS tagging in German
A... | 0 | 1 | 0 | 0 | 0 | 0 |
I'm tweening a movieclip from startX to finishX. The value of startX varies but finishX is a constant. But as the startX increases in value the animation appears to be quicker. How do I adjust the speed of the tween to ensure a consistant speed regardless of the value of startX?
Thanks
| 0 | 0 | 0 | 0 | 1 | 0 |
We've all poked fun at the 'X minutes remaining' dialog which seems to be too simplistic, but how can we improve it?
Effectively, the input is the set of download speeds up to the current time, and we need to use this to estimate the completion time, perhaps with an indication of certainty, like '20-25 mins remaining'... | 0 | 0 | 0 | 0 | 1 | 0 |
When I began this project, I thought it would be easy to get libraries for common stuff like matrix math, so I chose to work in Python 3.1- it being the most recent, updated version of the language. Unfortunately, NumPy is only compatible with 2.5 and 2.6 and seems to be the only game in town! Even other stuff that I... | 0 | 0 | 0 | 0 | 1 | 0 |
When doing:
load training.mat
training = G
load testing.mat
test = G
and then:
>> knnclassify(test.Inp, training.Inp, training.Ltr)
??? Error using ==> knnclassify at 91
The length of GROUP must equal the number of rows in TRAINING.
Since:
>> size(training.Inp)
ans =
40 40 2016
And:
>> le... | 0 | 0 | 0 | 1 | 0 | 0 |
I have a weird problem in asp.NET when calculating how many hours we need to invoice.
In the below example, we have a total of 75,9 hours that need to be invoiced.
These hours are spread over several database rows (TimeIDs).
Basically, I always deduct the "amount_invoiced" from the "to invoice" hourly count:
TimeID:25... | 0 | 0 | 0 | 0 | 1 | 0 |
This is a math problem, but I'm sure this must come up in some programming scenarios, at least I hope so, and I was wondering if there was a name for this type of situation:
Suppose I have 7 items in a series. For the sake of this example, let's use days of the week. I would like a user to submit which days of the week... | 0 | 0 | 0 | 0 | 1 | 0 |
I am adding "layer" objects to the stage with a depth value.
I have then created my own camera class. When I tell the camera to move to the right what Im actually doing is telling each layer object to move to the left.
The distance that the layer moved to the left is based on the value of its depth variable...
var fCam... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm planning to develop program in Java which will provide diagnosis. The data set is divided into two parts one for training and the other for testing. My program should learn to classify from the training data (BTW which contain answer for 30 questions each in new column, each record in new line the last column will ... | 0 | 1 | 0 | 1 | 0 | 0 |
I needed an application for solving linear systems of equations (N up to 10), so I got different codes, and compile them, and they seem to work, but I get lots of problems with precision. I mean, the solvers are really very sensitive to small changes of the system.
So, could somebody recommend to me a reliable commandl... | 0 | 0 | 0 | 0 | 1 | 0 |
Suppose I want to match address records (or person names or whatever) against each other to merge records that are most likely referring to the same address. Basically, I guess I would like to calculate some kind of correlation between the text values and merge the records if this value is over a certain threshold.
Exa... | 0 | 1 | 0 | 0 | 0 | 0 |
Given a scenario where we have multiple lists of pairs of items, for example:
{12,13,14,23,24}
{14,15,25}
{16,17,25,26,36}
where 12 is a pair of items '1' and '2' (and thus 21 is equivalent to 12), we want to count the number of ways that we can choose pairs of items from each of the lists such that no single item is... | 0 | 0 | 0 | 0 | 1 | 0 |
I need to work out if a massive integer (I mean 20 digits...) is prime.
I'm trying to use the brute-force method, but (of course) I need to use doubles to contain the original number. However, the modulo operator (%) is an integer operator - thus it is useless to me!
| 0 | 0 | 0 | 0 | 1 | 0 |
Thanks for looking at this. I apologize for this rather lengthy build-up but I thought it is needed to clarify things.
I have a chain of connected atoms, say a polymer which has rigid bonds and bond angles. With rigid bonds we get the condition that the distance between two immediate neighbours [eg. 2-3,3-4,etc.] is al... | 0 | 0 | 0 | 0 | 1 | 0 |
What is the original source for the thesaurus data in Aiksaurus?
Is it possible to get data about antonyms for a word from Aiksaurus?
| 0 | 1 | 0 | 0 | 0 | 0 |
Is it standard across all languages for the following to yield the value 3?
Print(6 - 2 - 1)
In other words, are there any languages that will evaluate " 2 - 1 " before " 6 - 2 "?
I'd like to make this assumption so that I can quit instinctively inserting parentheses ((6 - 2) - 1). It leave me at risk of LISP nightmar... | 0 | 0 | 0 | 0 | 1 | 0 |
I have two waveforms which are linked by a numerical factor. I need to use optimal scaling (least squares) between the two waveforms to calculate this factor in Matlab. Unfortunately I have no idea how to do this. The two wave forms are seismic signals related by the velocity of the seismic waves, which I'm trying to c... | 0 | 0 | 0 | 0 | 1 | 0 |
Does anyone know what math methods are implemnted by the hardware of the processor for .net? For example, I have an algorithm that makes a lot of use of atan. I can easily write a lookup table for this, but if math.net implements this using an fpu or other hardware extensions, it's not going to be worth it.
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm having a problem trying to understand how does AIML pattern matching works.
What's the difference between _ and *? And how I should use them to get the best match?
I have this document only, but it lacks some good examples.
| 0 | 1 | 0 | 0 | 0 | 0 |
How to find the maximum of two explicit values in MySQL? Something like MAXIMUM(1, @foo).
There are group functions like MAX, MIN, AVG, etc that take column name as an argument and work with result sets. Is it possible to convert two explicit values to a result set and use those functions? Some other ways?
P.S.: I need... | 0 | 0 | 0 | 0 | 1 | 0 |
I recently read this question regarding information gain and entropy. I think I have a semi-decent grasp on the main idea, but I'm curious as what to do with situations such as follows:
If we have a bag of 7 coins, 1 of which is heavier than the others, and 1 of which is lighter than the others, and we know the heavier... | 0 | 1 | 0 | 0 | 0 | 0 |
I am plotting flight paths between Airports that I have Latitude and Longitude values for onto a Google Map (v3 of the API).
However unlike v2, v3 does not seem to have an option to put a Polyline on the map between two points and have it display as the great-circle flightpath.
So what I was thinking, was that it might... | 0 | 0 | 0 | 0 | 1 | 0 |
I know the end points of a line segment and the distance/size of the perpendicular end caps I'd like to create but I need to calcuate the end points of the perpendicular line. I've been banging my head against the wall using either 45-45-90 triangles and dot products but I just can't seem to make it come together.
I kn... | 0 | 0 | 0 | 0 | 1 | 0 |
For a linguistics course we implemented Part of Speech (POS) tagging using a hidden markov model, where the hidden variables were the parts of speech. We trained the system on some tagged data, and then tested it and compared our results with the gold data.
Would it have been possible to train the HMM without the tagge... | 0 | 1 | 0 | 1 | 0 | 0 |
I'm using a shopping cart script from a tutorial I came across a while ago, and I need to modify it to calculate sales tax for my state (Pennsylvania). I want it to extract the state, compare it to either Pennsylvania or PA incase someone writes the state shorthand and then multiply the subtotal (for the items.. befor... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to write some code that will do "fuzzy hashing". That is: I want several inputs to hash to the same output so that I can do searches etc quickly and easily. If A hashes to 1 and C hashes to 1, it will be trivial for me to find out that A is equivalent to C.
Designing such a hash function seems hard, so I wa... | 0 | 0 | 0 | 0 | 1 | 0 |
What is the best mechanism for handling large scale structures and scenes?
Examples being a continent with scale cities and geography, or infinity universe style planetary transitions.
| 0 | 0 | 0 | 0 | 1 | 0 |
Edit: Since it appears nobody is reading the original question this links to, let me bring in a synopsis of it here.
The original problem, as asked by someone else, was that, given a large number of values, where the sum would exceed what a data type of Double would hold, how can one calculate the average of those valu... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm going to program a fancy (animated) about-box for an app I'm working on. Since this is where programmers are often allowed to shine and play with code, I'm eager to find out what kind of cool algorithms the community has implemented.
The algorithms can be animated fractals, sine blobs, flames, smoke, particle syst... | 0 | 0 | 0 | 0 | 1 | 0 |
I'm reading about an algorithm (it's a path-finding algorithm based on A*), and it contains a mathematical symbol I'm unfamiliar with: ∀
Here is the context:
v(s) ≥ g(s) = mins'∈pred(s)(v(s') + c(s', s)) ∀s ≠ sstart
Can someone explain the meaning of ∀?
| 0 | 0 | 0 | 0 | 1 | 0 |
I know the start and end points on a line segment. For this example say that the line segment has a distance of 5. Now I want to know the point that has a distance of three away from the end point. Any idea how to do this with math?
Start Point (0,0)
End Point (0,5)
Point I want to find (0,2)
| 0 | 0 | 0 | 0 | 1 | 0 |
I'm trying to calculate the monthly payment for the following scenario:
$5,000 is borrowed for 3 years at 8.00% compounded monthly with $1,000 due at the end of the term.
/*
From Math.pas
function Payment(Rate: Extended;
NPeriods: Integer;
const PresentValue: Extended;
const FutureValue: Extended;
PaymentTime: TPa... | 0 | 0 | 0 | 0 | 1 | 0 |
why does model.diff return 18446744073709551615 in template, when model is like this and model.pos is 0 and model.neg is 1?:
class Kaart(models.Model):
neg = models.PositiveIntegerField(default=0)
pos = models.PositiveIntegerField(default=0)
def diff(self):
return self.pos - self.neg
| 0 | 0 | 0 | 0 | 1 | 0 |
I have a method that draws a line between two points. This works pretty well, but now I want to make this line into a rectangle.
How can I get the points on the left and right side of each of the line points to make it into a rectangle that I can draw?
It is almost as though I need to somehow figure out how to get per... | 0 | 0 | 0 | 0 | 1 | 0 |
I want to be able to let users enter dates (including recurring dates) using natural language (eg "next friday", "every weekday"). Much like the examples at http://todoist.com/Help/timeInsert
I found this post, but it's a bit old and offered only one solution that I'm not entirely content with. I thought I'd resurrect ... | 0 | 1 | 0 | 0 | 0 | 0 |
If tan(x) = y and atan(y) = x why Math.Atan(Math.Tan(x)) != x?
I´m trying to calculate x in something like:
tan(2/x +3) = 5
so
atan(tan(2/x + 3) = atan(5)
and so on... but I´ve tried this:
double d = Math.Atan(Math.Tan(10));
and d != 10. Why?
| 0 | 0 | 0 | 0 | 1 | 0 |
How would I go about generating a unique receipt number in the following range:
GA00000-GZ99999? I am not allowed to use the 'I' and 'O' letters so GI00000-GI99999 & GO00000-GO99999 would be excluded.
Ideally, I'd like to create this in T-SQL but can also do it in VB.Net. This number will be stored in SQL and I can acc... | 0 | 0 | 0 | 0 | 1 | 0 |
I have downloaded AraMorph 1.2.1 Perl version from SourceForge, but I do not know how to use it. Could someone explain to me how can I get it to work?
| 0 | 1 | 0 | 0 | 0 | 0 |
I'm trying to check spelling accuracy of text samples using the Stanford NLP. It's just a metric of the text, not a filter or anything, so if it's off by a bit it's fine, as long as the error is uniform.
My first idea was to check if the word is known by the lexicon:
private static LexicalizedParser lp = new Lexicalize... | 0 | 1 | 0 | 0 | 0 | 0 |
I am working on a math expression parser using regular expressions and I am trying to add support for parentheses.
My parser works like this:
function parse_expression(expression){
Find parenthetical expressions
Loop through parenthetical expressions, call parse_expression() on all of them
Replace parenthet... | 0 | 0 | 0 | 0 | 1 | 0 |
I am currently studying Fiege-Fiat Shamir and am stuck on quadratic residues. I understand the concept i think but im not sure how to calculate them for example how would i calculate
v | x^2 = v mod 21 | x =?
___________________________________
1 x^2 = 1 mod 21 1, 8, 13, 20
4 x^2 = 4 mod 21 2, 5, 16... | 0 | 0 | 0 | 0 | 1 | 0 |
as a homework assignment, we're writing a software rasterizer. I've noticed my z buffering is not working as well as it should, so I'm trying to debug it by outputting it to the screen. (Black is near, white is far away).
However, I'm getting peculiar values for the z per vertex. This is what I use to transform the poi... | 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.