edu.columbia.tjw.item.ItemModelGrid Maven / Gradle / Ivy
/*
* Copyright 2014 Tyler Ward.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* This code is part of the reference implementation of http://arxiv.org/abs/1409.6075
*
* This is provided as an example to help in the understanding of the ITEM model system.
*/
package edu.columbia.tjw.item;
/**
* A grid of data needed by the model.
*
* This grid would have enough data to perform projection, additional
* information is needed for fitting.
*
*
* @author tyler
* @param The status type for this model
* @param The regressor type for this model
*/
public interface ItemModelGrid, R extends ItemRegressor>
{
/**
* Get the regressors for this observation.
*
* Note that the results will be transformed (according to the curves from
* getTransformation)
*
* @param index_
* @param output_
*/
public void getRegressors(final int index_, final double[] output_);
/**
* The total number of observations in this data set.
* @return
*/
public int totalSize();
/**
* The regressor corresponding to the i'th element of the output of getRegressors
* @param fieldIndex_
* @return
*/
public R getField(final int fieldIndex_);
/**
* The transformation (possibly null, which means the identity) corresponding
* to the i'th element of the output of getRegressors.
*
* @param fieldIndex_
* @return
*/
public ItemCurve> getTransformation(final int fieldIndex_);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy