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

org.kramerlab.bmad.algorithms.IdentityCombinator Maven / Gradle / Ivy

package org.kramerlab.bmad.algorithms;

import org.kramerlab.bmad.matrix.BooleanMatrix;

/**
 * A "formal" combinator, that does nothing itself and just returns the
 * approximation generated by the basis selector in the previous step.
 */
public class IdentityCombinator extends Combinator {

	@Override
	protected BooleanMatrix combineRow(BooleanMatrix row,
			BooleanMatrix previousCombination, BooleanMatrix basis,
			double onesWeight) {
		return previousCombination;
	}

	@Override
	public String toString() {
		return "Id";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy