Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have working code but it use static data. This data contains two dimensions height and weight. Now i want to use same code but data should be taken from text file. This text file contain 5 dimensional data floral data (sepal_length, sepal_width, petal_length, petal_width, specie_name). this data is taken from machine UCI learning repository.
The static data is of double type but my file data is string type too so i am facing problem of dimensions and type while implementing same code with text file data.

i have taken working code from

K-Means Data Clustering Using C# -- Visual Studio Magazine[^]

What I have tried:

i have tried by saving text file data in static string array but that give type error.
Posted
Updated 23-Mar-16 21:27pm
v3

1 solution

The problem is in the changes you have done :)
Asking questions is a skill[^]

Do you understand that it impossible to answer your question ?
You explain that you have done changes in a code you found on internet and that your changes don't work. You don't show your changes.
Keep in mind we don't see your screen, don't have access to your computer (at least for most of us :) ), don't know what is in your head.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900