// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) fieldsfirst 
// Source File Name:   NeuroNetDomain.java

package lt.ktu.gmj.tasks;

import lt.ktu.gmj.Domain;
import lt.ktu.gmj.Point;

public class NeuroNetDomain extends Domain
{

	private int weightCount;

	public NeuroNetDomain()
	{
		weightCount = 0;
		update(16, 0.0D, -1D, 1.0D);
	}

	public String[] dimensions()
	{
		String out[] = new String[weightCount];
		for(int i = 0; i < weightCount; i++)
			out[i] = "weight(" + String.valueOf(i) + "):";

		return out;
	}

	public void update(int weightCount, double defValue, double minValue, double maxValue)
	{
		this.weightCount = weightCount;
		defaultPoint.x = new double[weightCount];
		min = new double[weightCount];
		max = new double[weightCount];
		for(int i = 0; i < weightCount; i++)
		{
			defaultPoint.x[i] = defValue;
			min[i] = minValue;
			max[i] = maxValue;
		}

	}
}
