Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
k750
- Page 1
How Build Html form ?
Programming
3 Weeks Ago
by Kirubel_2
<!DOCTYPE html> <html style="font-size: 16px;" lang="en"><head> <title>Comment</title> <script src="js/jquery.js"></script> <link rel="stylesheet" href="sign.css"> </head> <body …
Re: Is Coding About Authoring or Achieving a Specification?
Programming
2 Months Ago
by Reverend Jim
As an example, here is some code we got from a vendor. It is rock-solid. It does what it is supposed to but it is virtually unmaintainable. I can't begin to imagine how it was ever debugged. SUBROUTINE READALL(UNIT,BUFF,*,*,IFIRST) C*TTL READALL READ FROM ANYTHING C THIS SUBROUTINE IS USED FOR READING COMPRESSED OR …
K-prototype
Programming
Software Development
8 Years Ago
by dhitinair
can anyone suggest how to convert python code to java. Following is the python implementation """ K-prototypes clustering """ # Author: 'Nico de Vos' <njdevos@gmail.com> # License: MIT from collections import defaultdict import numpy as np from scipy import sparse…
K-means clustering
Programming
Software Development
18 Years Ago
by G-Do
Here's something of mine that might actually be useful: a Python implementation of the K-means clustering algorithm. I wrote something similar last year in Java for a school project, and decided to rewrite it in Python this summer for practice. The purpose of the algorithm is to discover internal structure in some set of data points - you supply…
K Factor?????
Programming
Software Development
14 Years Ago
by confusedndazed
Hello all, I'm very confused on this K factor stuff.....I understand that...1*2*…*k indicates the product of consecutive numbers and therefore: 1*2*…*5 is actually 1*2*3*4*5 = 120 But I'm not sure how to write that as a code. I have the following information: /* pseudocode for Binomial Coefficients */ int binomial(int…
K Means Clustering Algorithm
Programming
Software Development
14 Years Ago
by sathya8819
Hi, I am trying to implement the K Means Clustering Algorithm for Image Segmentation. The logic behind K Means is : 1. Place K points into the space represented by the objects that are being clustered. These points represent initial group centroids. 2. Assign each object to the group that has the closest centroid. 3. When all …
Re: K-means clustering
Programming
Software Development
14 Years Ago
by dgg32
Nice man. A barebone k-means imple. Learn a lot from you. Some suggestion: Make a second iteration, so that we can try different k values and take the has the smallest within-cluster sum of squares. Or, output the within-cluster sum of squares in the end. So the user may run your code several times or put it to parallel computering with …
Re: K-means clustering
Programming
Software Development
13 Years Ago
by nicegiving
Very good program but I think your code may have a bug, that is one of the clusters may be empty in the end, and there will be an exception in line 54, the exception will be like: "ZeroDivisionError: float division" because self.points is "[]". I created an image to illustrate the problem:[URL="http://systemsbiozju.org/…
Re: K Factor?????
Programming
Software Development
14 Years Ago
by mrnutty
no. the k is passed in from main. So k can be any number. For example, inside you main : [code] int main() { binomial(5, 10); // here k = 10; binomial(3, 276); // here k is 276 } [/code]
Re: K Factor?????
Programming
Software Development
14 Years Ago
by confusedndazed
[QUOTE=firstPerson;1066594]no. the k is passed in from main. So k can be any number. For example, inside you main : [code] int main() { binomial(5, 10); // here k = 10; binomial(3, 276); // here k is 276 } [/code][/QUOTE] OK thx!!!
K&R with Visual C++.net version 2003
Programming
Software Development
16 Years Ago
by fcleme
I am trying to relearn C by going through the K&R exercises (I have the first, non-ANSI, edition...that's how long it's been since I last programmed in C under Unix as a software engineer). I have Visual C++.net version 2003 on a Windos XP computer. I would prefer to continue using this compiler because it is used where I work and I want …
K-Maps and boolean algebra
Programming
Software Development
16 Years Ago
by arun.gerrard
can someone teach me k-maps and boolean algebra.... also give me the links to some ebooks which explain the basics of k-maps if u find any.
(k)dialog or zenity implemented as a python function
Programming
Software Development
16 Years Ago
by pythoxine
I don't know what to do with this xlib error I get from the code below (please paste it into the python console and see it for yourself). I got some advice from some guy, but I am a newbie to wxpython so I don't know how to follow it and it will take a long time until I will become capable to do it. Since it may be much easier for you to do it, …
Re: K&R with Visual C++.net version 2003
Programming
Software Development
16 Years Ago
by Salem
It would be better IMO to actually learn ANSI-C. K&R C is strictly historical or for old code requiring long term maintenance.
Re: K&R with Visual C++.net version 2003
Programming
Software Development
16 Years Ago
by fcleme
Thanks for your prompt suggestions. I am definitely going to buy the ANSI-C version of the K&R book. But I expect to have the same problem of trying to run the exercises under the IDE instead of Unix. I saw in another post from Narue that you can tell the compiler to compile C code rather than C++ code. That would be a good start. Thanks …
Re: K&R with Visual C++.net version 2003
Programming
Software Development
16 Years Ago
by Ancient Dragon
>>can tell the compiler to compile C code rather than C++ code. Yes, just name the source file with *.c extension instead of *.cpp and the IDE will know how to compile it. >>I am definitely going to buy the ANSI-C version of the K&R book Get a different book because even that one is out-of-date. See the [b]Read Me[/b] threads…
K-rad
Community Center
Geeks' Lounge
16 Years Ago
by The Dude
This band does good electronica music!! Lots of it on thier site! It truly is [url=http://www.padk-rad.com][u]K-RAD![/u][/url] :)
Re: K-rad
Community Center
Geeks' Lounge
16 Years Ago
by jbennet
more like K-RAP (LOL ;) )
k-means clustering
Programming
Software Development
14 Years Ago
by gaurav_kl
Hi all, I have a task in which I have data of different classes.And I have to perform K-means clustering on each class to reach the right combination of clusters. Can somebody give any link of code or help for this. Thanks Gaurav
K&R Exercise...
Programming
Software Development
14 Years Ago
by kelevra
Hi all... First post here, be gentle. I'm trying to get this to work, and there's no output. This is from the K&R book [v2] exercise 1-14, the prompt is in the header. I added comments for readability, and please comment on anything you believe needs improvement. Thank you for reading. [CODE]/* * EX114.c * this will create a histogram …
K-means clustering algorithm for documents
Programming
Software Development
14 Years Ago
by rehpolin
hi i need K-means cluster algorithm for documents in c#.plz send the code to my mail id ....
Re: K-means clustering algorithm for documents
Programming
Software Development
14 Years Ago
by kvprajapati
Not so hard. Take a look at - [url]http://en.wikipedia.org/wiki/K-means_clustering[/url]
Re: total+=sum(k) TypeError: unsupported operand type(s) for +:'int' and'str'
Programming
Software Development
6 Years Ago
by woooee
k is a dictionary value for the Albert Einstien key `self.grades[name]` so you are trying to sum/add a dictionary `total+=sum(k)`. I would suggest that you print "grades" so you at least know what it contains.
Re: (m-k)perfect number generator
Programming
Software Development
11 Years Ago
by Gonbe
I find your code pretty difficult to read. Why don't you divide problems into a smaller problems by using functions? I don't really know the theory behind perfect numbers that well but on a quick attempt I would go for something like this, which is quite different and (in my opinion) easier to read. Note that the m-superperfect number section is …
Re: finding all the posible k-length lists from n elements
Programming
Software Development
12 Years Ago
by Gribouillis
Your solution looks good, but it changes the order of the list items. Here is another solution which preserves order [code=python] def choose_range(n, k): if k == n: return [list(range(n))] elif k == 0: return [[]] elif k == 1: return [[i] for i in range(n)] result = [] for lst in choose_range(n…
Re: finding all the posible k-length lists from n elements
Programming
Software Development
12 Years Ago
by ni5958
[QUOTE=pyTony;1730563]The result should include sublists of length k which do not contain first element and lists of first element followed by all sublists from other elements of length k - 1, when length of argument is more than k.[/QUOTE] i've thought about what you said and i've thought about how to implement this but i've still haven't …
Java K-means problem
Programming
Software Development
12 Years Ago
by DreamTheater85
Hi, I've been working on this k-means clusterization program. I made mistake somewhere in the code, and program outputs only zeros. I tried to debug it, but I was not able to solve the problem. I would like to ask for suggestions how to fix my program. Thanks, public class kmeans { int clusters; int[][]points = new int[6…
Generating k+1 length strings from a list of k length strings:Need a better method
Programming
Software Development
17 Years Ago
by girish_sahani
I have a list of strings all of length k. For every pair of k length strings which have k-1 characters in common, i want to generate a k+1 length string(the k-1 common characters + 2 not common characters). e.g i want to join 'abcd' with bcde' to get 'abcde' but i dont want to join 'abcd' with 'cdef' Currently i'm joining every 2 strings, then …
problems in implementation of k means
Programming
Software Development
13 Years Ago
by srikanth2321
Hi all, I'm trying to implement K-means on a database.I have a table like this: The main task is to group id's and return them based on similarity in intensities depending on the number of clusters that the user want to see them. [CODE]id I1 I2 I3 I4 I5 1 1 2 3 4 5 2 11 12 13 14 15 3 21 22 23 24 25[/CODE] …
finding all the posible k-length lists from n elements
Programming
Software Development
12 Years Ago
by ni5958
Hi, i need to write a recursive function which gets a list and an integer k and returns a list of all the possibilities of creating sub lists to the length of k with the elements from the original list. i hope i was clear enough.. here are some examples: >>> choose_sets([1,2,3, 4],0) [[]] >>> choose_sets([1,2,3, 4],2) [[2, …
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC