CKernelMeanMatching::CKernelMeanMatching(CKernel* kernel, SGVector<index_t> training_indices, SGVector<index_t> test_indices) : CSGObject(), m_kernel(NULL) { set_kernel(kernel); set_training_indices(training_indices); set_test_indices(test_indices); }
void cmd_kernel(int argc, char** argv) { uint32_t address; uint32_t size; if(argc < 3) { address = 0x09000000; size = received_file_size; } else { address = parseNumber(argv[1]); size = parseNumber(argv[2]); } set_kernel((void*) address, size); bufferPrintf("Loaded kernel at %08x - %08x\r\n", address, address + size); }
SurfaceShellDensityMap::SurfaceShellDensityMap(const ParticlesTemp &ps, float voxel_size, IMP::FloatKey mass_key, int num_shells) : SampledDensityMap() { set_kernel(); set_particles(ps, mass_key); // update the grid size to contain all of the particles determine_grid_size(header_.get_resolution(), voxel_size, 3.); // to make update_voxel_size(voxel_size); num_shells_ = num_shells; set_neighbor_mask(); IMP_LOG_TERSE("going to resample\n"); resample(); // update dmin and dmax header_.dmin = get_min_value(); header_.dmax = get_max_value(); }
SurfaceShellDensityMap::SurfaceShellDensityMap(const DensityHeader &header) : SampledDensityMap(header) { set_kernel(); set_neighbor_mask(); }
IMPEM_BEGIN_NAMESPACE SurfaceShellDensityMap::SurfaceShellDensityMap() : SampledDensityMap() { set_kernel(); }