Code Search for Developers
 
 
  

FMMCell.java from gzz at Krugle


Show FMMCell.java syntax highlighted

/*   
FMMCell.java
 *    
 *    This file is part of Gzz.
 *    
 *    Gzz is free software; you can redistribute it and/or modify it under
 *    the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation; either version 2 of the License, or
 *    (at your option) any later version.
 *    
 *    Gzz is distributed in the hope that it will be useful, but WITHOUT
 *    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 *    or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General
 *    Public License for more details.
 *    
 *    You should have received a copy of the GNU Lesser General
 *    Public License along with Gzz; if not, write to the Free
 *    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 *    MA  02111-1307  USA
 *    
 *
 */
/*
 * Written by Kimmo Wideroos
 */

// fmm cell

package org.gzigzag.map;
import java.util.*;

public class FMMCell {

    public int key;
    public int keylevel;
    public float xcenter, ycenter;
    private int trunc_p;
    public Complex[] a;
    public Complex[] b;
    
    public FMMCell(int key, float xc, float yc, int klevel, int p) {
	this.key = key;
	xcenter = xc;
	ycenter = yc;
	trunc_p = p;
	//n = 0;
	keylevel = klevel;
	a = new Complex[p+1];
	b = new Complex[p+1];
	for(int i=0; i<p+1; i++) {
	    a[i] = new Complex();
	    b[i] = new Complex();
	}
    }
}




See more files for this project here

gzz

An implementation of Ted Nelson's ZZstructure. ZZstructure is a new type of programming platform for structured data.

Project homepage: http://savannah.nongnu.org/projects/gzz
Programming language(s): C++,Java,Python
License: lgpl21

  Complex.java
  DefaultInputReader.zob
  FMM.java
  FMMCell.java
  FMMHashTree.java
  FMMParticle.java
  SOM1.java
  SOMParticle.java
  TestFMM.java
  TestSOM1.java
  ZZFMM1.zob
  ZZMap.java
  ZZMapView.zob
  ZZSOM1.zob