All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.shikhir.lsh.trimmed.TShingleProperties Maven / Gradle / Ivy

Go to download

This is a simplified implementation for Locality sensitive hashing(LSH) for text documents

The newest version!
package com.shikhir.lsh.trimmed;


public class TShingleProperties  {
	private int location;
	private Float percentage;
	
	public TShingleProperties(){
		
	}

	TShingleProperties (float percentage){
		setPercentage(percentage);
	}
	
	
	TShingleProperties (float percentage, Integer location){
		setLocation(location);
		setPercentage(percentage);
	}

	public void setLocation(Integer location) {
		this.location = location;
	}

	public int getLocation() {
		return this.location;
	}
	
	public Float getPercentage() {
		return this.percentage;
	}

	public void setPercentage(float percentage) {
		this.percentage = percentage;
	}

    public String toString() {
        return "TShingleProperties [ location: "+location+", percentage: "+ percentage+ " ]";
    }
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy