Click here to Skip to main content
16,012,316 members

Comments by Member 8697827 (Top 31 by date)

Member 8697827 16-Jul-13 3:13am View    
Dear Dr Maimonides
The numerator= oldEnt(bags) - newEnt(bags); in splitCritValue is for each attribute so I want to add to each element in the matrix for each attribute

Dalia
Member 8697827 15-Jul-13 8:39am View    
Thank you for your reply
I have a class containing a matrix
class matrix{
public void actionPerformed(ActionEvent e)
{
dd = new double[m_Instances.numAttributes()];
for (int i = 0; i < m_Instances.numAttributes() - 1; i++)
dd[i] = Double.parseDouble(JOptionPane.showInputDialog("Enter " + m_Instances.attribute(i).name()));
}}
and I want to add the matrix to another method in another class

class matrixxx
{
public final double splitCritValue(Distribution bags, double totalNoInst) {

double numerator;
double noUnknown;
double unknownRate;
int i;

noUnknown = totalNoInst-bags.total();
unknownRate = noUnknown/totalNoInst;
numerator = oldEnt(bags) - newEnt(bags);
numerator = (1-unknownRate)*numerator;

// Splits with no gain are useless.
if (Utils.eq(numerator,0))
return 0;

return numerator/bags.total();
}}
waiting for your reply
Dalia
Member 8697827 28-Dec-12 6:28am View    
I want to write the date in the textbox and display it also in the same textbox also i have database that save this date so how can I make it
Member 8697827 22-Dec-12 6:32am View    
I do it but it gives incorrect syntax near ']'.
Member 8697827 22-Dec-12 6:28am View    
I search dd_db and it exist but I cannot find the dd_tb so I think the error is in the command of create table but i cannot find the error can you help me